-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Connections hang in CLOSED state #1589
Comments
@essen could you react on this please? |
What I don't understand is why the idle/inactivity timeouts don't help. Anyway have you tried the patch in the PR, does it fix your case? |
I should have mentioned, sorry for that.
Not yet. Will check it soon. |
Yes I've merged a similar patch for Gun, didn't think there was users disabling these timeouts so didn't follow up here (priorities and all that). But sounds like it'd be useful for the next release. |
Looking forward for the release. Thank you! |
This will now work properly on current master. I made a slightly different fix so you may want to test again before I release the new version. Closing, thanks! |
We have faced an issue when connections (ports and processes owning them) hang forever (we use these connections for infinite streams of events).
Our investigation showed it happens due to combination of configuration, error handling from cowboy side and inet_drv behavior. The interesting thing here is when
send_timeout_close
configuration parameter is used andinet_drv
closes a connection due to timeout it does not sendtcp_closed
ortcp_error
message to a port owner. The only thing we can do in this case is always check a return value ofTransport:send/2
.UPD: I've made a test for this case in #1590
The text was updated successfully, but these errors were encountered: