-
-
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
Connection close issue after upgrading from 2.10 to 2.12 #1654
Comments
Could also be 1a175e7
A |
You were spot on with 1a175e7 . I've dropped this commit from your main branch and deployed a |
Double checked on the slowest connection I could find. Took me 3 minutes to download the 120MB, the version without the change worked like a charm. ;) Should I create a PR reverting the change? |
No we should find where it goes wrong and fix it. It's probably using My guess is that it doesn't check something properly and thinks there are no ongoing requests, but only debugging would tell us what's really happening. A good first step would be writing a test that sends a large enough body that fails in the same way as you're seeing it. |
Hi guys, the problem is with this commit 1a175e7 as it was mentioned Originally I started cowboy with
To revert to the original behavior you have to add the option
To be fair it's confusing to me the meaning of these 3 timeouts.. and at least in my mind Unfortunately in my case I'm trying to prolong the lifetime of the connection even though there were no ongoing connections, which you might say to be an abuse of the protocol.. but it fits my use case.. I might switch to http2 if you think that the eventual fix is going to not allow me to do the trick in the future. |
The added option should do what you want, including when the issue in this ticket is fixed. The issue in this ticket is that it sometimes uses the wrong timeout, but if you configure all of them as |
After upgrading Cowboy 2.10 to 2.12 we've noticed a different behaviour when downloading a large file using http1.1 over a rather bad internet connection. It's a Java client producing a
Exception in thread "main" org.apache.hc.core5.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 119354644; received: 23919978)
error. So my guess is the changes related to the timeouts in 2.12 trigger this issue.idle_timeout
is unchanged at 5 minutes , so I tried to set the newreset_idle_timeout_on_send
which didn't help. Maybe anyone has an idea what could cause the changed behaviour here. Thanks!The text was updated successfully, but these errors were encountered: