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

Close stale TCP connections after 10 minutes #10

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

trekawek
Copy link

This PR introduces a timeout for the inactive TCP connections. The timeout is 10 minutes, which should be fine, since firmware sends a keep-alive packet every 1 minute:

https://github.com/FujiNetWIFI/fujinet-firmware/blob/fb9e6cc7334225031a57e293309d8612a21cc74b/lib/FileSystem/fnFsTNFS.cpp#L128-L129

Also, it reduces the session timeout (affecting TCP and UDP clients) from 6 hours to 10 minutes (since the keep-alive should refresh sessions as well, regardless of the protocol).

This should work, since firmware have keep-alive function sending a
message every 1 minute.
@trekawek trekawek closed this Aug 11, 2024
@trekawek trekawek reopened this Aug 11, 2024
@tschak909
Copy link

I looked at this, and it makes sense. Let's pull it in and see how it helps. Thanks! -Thom

@tschak909 tschak909 merged commit 55ad580 into FujiNetWIFI:master Aug 12, 2024
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

Successfully merging this pull request may close these issues.

2 participants