-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Getting unexpected eof after upgrade to 0.11.8 #1396
Comments
Does the connection send bytes it shouldn't? Such as, is there a body to a head request, or some extra bytes after the end of a response body? |
I doubt it; we're talking to Gitlab which is using Grape for its REST API and I'd expect it to be well-behaved in that respect. I'll check the logs though to see if that's happening. |
I'm only seeing |
Would it be possible to turn on logs from hyper and (after sanitizing) paste the ones that appear around the error log? I'm setting up a super simple program to just hit some public API end points on Gitlab and not seeing this error log, so I could use a little more on how to investigate this. |
We see it when running the queries through Rayon, so it could be something to do with saturating |
Is there an email address that would be good to send it to? I anonymized it by removing all of the |
You could send it to [email protected]. |
The most likely cause for this was that the connection was being closed immediately after the end of a response body was read. The internal implementation would not have adjusted its state that an EOF was OK at that point (only doing so in Merged to master is a fix to update its state that the message has completed and so an EOF is not unexpected. Would you be able to test using hyper master, to confirm? |
Yes, it works as of |
This release fixes an issue that occurred frequently with Gitlab communication. See hyperium/hyper#1396 for details.
After upgrading our application (which only uses
hyper
directly for theheader!
macro in a dependent library andreqwest
otherwise) to 0.11.8, we've started getting this error showing up:which comes from
tokio-proto
. We've narrowed it down tohyper
changing in commit 95e0164. Is there some way that we're usingreqwest
improperly that would cause this?All of our calls using
reqwest
are contained in this file and this is a long-lived structure, though we're seeing errors right after startup. Doesreqwest
need changes related to its connection pool?Cc: @bradking
The text was updated successfully, but these errors were encountered: