Skip to content
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

Connection between the RTI and federates is closed after some idle time #423

Open
byeonggiljun opened this issue May 11, 2024 · 4 comments

Comments

@byeonggiljun
Copy link
Collaborator

When we connect a federate to the RTI on a different machine, it seems there is a timeout for the connection.

image

When I ran the example above (I didn't run the RTI on the local host), the federate S failed to send a message at 120 sec.
The figures below are the parts of the execution outputs.

  • federate_s
    image
  • RTI
    image
@edwardalee
Copy link
Contributor

Interesting. This is probably some default timeout that needs to changed when opening a socket. I vaguely recall some sort of keepalive configuration option for sockets...

@byeonggiljun
Copy link
Collaborator Author

byeonggiljun commented May 11, 2024

Thank you for getting interested in this, @edwardalee!

As you said, I could find a post that explains TCP keepalive (https://tldp.org/HOWTO/TCP-Keepalive-HOWTO/overview.html). I'll apply this option to the federated execution.

@edwardalee
Copy link
Contributor

In addition to keepalive, we might consider a procedure that attempts to reconnect when it detects a failed connection. Of course, this won't work if the socket server isn't up, so I'm not sure what practical scenarios this will address.

@erlingrj
Copy link
Collaborator

I believe this is fixed with #422

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants