Open uroshercog opened 5 years ago
Hi @uroshercog .
Whilst there could be a race condition here, I don't think this is an issue as the code that calls that will retry sending the Route Control message until it is successful.
Hello @matdehaast,
I agree with you that this is a transient issue which gets resolved eventually, I don't think relying on this is the right way to go, because there might be other implementations that act differently. To resolve this issue elegantly without too much code change, the connector should send T00 instead of F00, because the latter should not be retried, according to the spec.
What do you think?
Hmmm,
Perhaps, but you can't know ahead of time this is a transient issue as you would not know whether or not the peer will/will not be created at a future date.
The CCP spec hasn't been formally established yet and is on the TODO list. Honestly I would always expect all the implementations to retry sending the route control message as that is the only way to tell your peer to begin sending you route information.
I do understand the issue you are raising though I don't think a T00
is the correct error. @adrianhopebailie @sharafian @emschwartz can maybe also weigh in
When peering with another connector using a
peer
relation, there seems to be a race condition, as it occurs at random.You can reproduce this issue by sending a route control request immediately after sending a packet approving the authentication credentials. The connector then tries to handle the request before it finishes processing the previous packet and adding the connector to the peers list (my assumptions).
Here are the logs