-
-
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
request error = HttpMethodError
logs
#197
Comments
seanmonstar
added
C-bug
Category: bug. Something is wrong. This is bad!
A-server
Area: server.
labels
Dec 13, 2014
It seems the error is 2-fold:
|
We could call the appropriate reading/writing functions in |
seanmonstar
added a commit
that referenced
this issue
Feb 14, 2015
If a client sent an illegal request (like a GET request with a message body), or if there was a legal request with a body but the Handler didn't read all of it, the remaining bytes would be left in the stream. The next request to come from the same client would error, as the server would confuse the remaining bytes, and think the request was malformed. Fixes #197 Fixes #309
This was referenced Feb 14, 2015
seanmonstar
added a commit
that referenced
this issue
Feb 14, 2015
If a client sent an illegal request (like a GET request with a message body), or if there was a legal request with a body but the Handler didn't read all of it, the remaining bytes would be left in the stream. The next request to come from the same client would error, as the server would confuse the remaining bytes, and think the request was malformed. Fixes #197 Fixes #309
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm finding the following in my server logs with some frequency:
After spending some time on this, I've found a simple reproduction that seems to hinge on requests with a chunked transfer encoding, though I couldn't tell if it was the hyper client or the server that was incorrect. Wireshark hinted that it may be the client, but I believe that I've encountered this log message in the wild and not just when testing the hyper server with the hyper client.
The log message is produced when the server is trying to read the http method of a request but encounters unexpected characters. In the case of the error reproduction below, the server appears to be trying to read for a second request on the connection, and it encounters \r\n instead of the expected http method.
The text was updated successfully, but these errors were encountered: