Skip to content

Http client has an issue with hyper when body is not read. #3113

Answered by sfackler
petm-dec asked this question in Q&A
Discussion options

You must be logged in to vote

I haven't checked the code, but my hypothesis is that Hyper is going to read from the stream until it sees the end of the headers. If the final read happens to also include the empty chunked body, it detects that it's read the entire request and is willing to keep the connection open. If it doesn't see the empty chunked body in the final read (e.g. because it was sent in a separate TCP packet that hasn't yet been read by the kernel) it will terminate the connection after responding if the handler code does not force it to process the body.

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@petm-dec
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by petm-dec
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants