-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TCP driver reconnect time #3129
Comments
Part of the TCP refactor was to add For use cases such as this, it is expected that you connect before attempting to send and thus ensure that the connect/reconnect does not happen yet. You can also set reconnect = false in the configure call to disable all reconnect behavior. |
Ah, I see. That makes sense. Maybe we could consider adding a timeout to the connection attempt? It makes a lot of sense to attempt to connect, but it violates the assumption we made that setting a timeout in the |
We could add a connection timeout, and I wouldn't be opposed to it. However, I think the preferred method would be to turn off auto-open, and handle the connection off the critical thread. I don't know if a timeout will properly bound that call anyway because you have two timeouts: SEND, and RECV. The connect call would be composed of n number of send an receives to establish the connection. The best way to get a pseudo-bound on the send is to not connect on send. Then it will be limited to 1 iteration of the send timeout.
All in all, let me know how you'd prefer to proceed with this ticket: is this still worth considering, or should we polish the alternatives. |
Problem Description
We are now having the following issue:
send
port of the TcpClientconnect
every timeFor some reason, we were not seeing this issue before we updated. Perhaps it was only occasionally trying to reconnect?
Context / Environment
Execute
fprime-util version-check
and share the output.The text was updated successfully, but these errors were encountered: