You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second response body is Extension("bodyPOST"). The unread body of the first request got read as part of the second request. You can generate these request like so:
curl -v -d body http://localhost:12346 http://localhost:12346
The text was updated successfully, but these errors were encountered:
There isn't really a way to fix this without breaking compatibility.
The problem is that the Request can be deconstructed, and the HttpReader is a public enum, which is what keeps track of whether the body has been read or not. So there isn't anywhere to add a field, or add a Drop impl, or anything, that could signal that the socket shouldn't be read from for a new request.
Given the effort to try to find some way to fix this without breaking 0.10.x users, and that 0.10.x isn't receiving any more development, I'm going to close this as a wontfix.
In hyper 0.10 I have this simple server:
When sending this request stream:
The second response body is
Extension("bodyPOST")
. The unread body of the first request got read as part of the second request. You can generate these request like so:The text was updated successfully, but these errors were encountered: