How long should it take for both sides of a link to recognize disconnects? #319
Answered
by
markqvist
ThomasFreedman
asked this question in
Help & Questions
-
I have been running tests with both sides connected via a link over TCP, and it takes a minimum of 20 minutes (sometimes 30 - 40) for either side to fire off the link closed callback when RNS.Reticulum.exit_handler() is called. |
Beta Was this translation helpful? Give feedback.
Answered by
markqvist
Jun 3, 2023
Replies: 1 comment 3 replies
-
Are you calling |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just do:
That's all. Reticulum detects the program termination and cleans up. Any open links should be closed cleanly and automatically send teardown packets.
The problem you are seeing is more or less completely equivalent to immediately terminating a program with an open TCP connection. It will take a long time for the remote host to detect that the connection is no longer active (unless certain TCP parameters were set on the socket via the kernel interfaces).