-
Notifications
You must be signed in to change notification settings - Fork 45
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
bug: connections that never close #294
Comments
Hey @Davidson-Souza , I would like to work on this issue. Would it be ok to be assigned to me? |
After investigating this issue, I believe I’ve identified the cause. The In Floresta’s The problem arises in specific scenarios where the read loop hangs indefinitely, leaving the connection in Relevant code:
To solve this, I propose either adding a timeout (of 60 seconds as the is the standard for linux kernel's I’m also considering how to reliably reproduce this issue for testing, without running Floresta indefinitely. I am thinking about a small script that will connect two peers locally, where one attempts to close the connection and the other never confirms it. I am opened to suggestions. I would appreciate your input and opinion on this @Davidson-Souza |
But we don't have control over this, do we? This is a system-wide config, not a local one. Tokio docs say that close in |
If we leave
floresta
running for a long time, at least on Linux, we get several connections with statefin-wait2
. Looks like this means that some side didn't close (likely the other peer). It doesn't seem like they are taking CPU time, but this may be a problem if we eventually run out offd
or something like this.The text was updated successfully, but these errors were encountered: