mirror of
https://github.com/curl/curl.git
synced 2026-08-26 13:43:34 +03:00
http2: when uploading data from stdin, fix eos forwarding
When uploading data from stdin ('-T -'), and the EOS was only detected
on a 0-length read, the EOS was not forwarded to the filters. This led
HTTP/2 to hang on not forwarding this to the server.
Added test_07_14 to reproduce and verify.
Fixes #14870
Reported-by: nekopsykose on github
Closes #14877
This commit is contained in:
parent
9dc0770e2c
commit
70d3a9b6aa
5 changed files with 68 additions and 18 deletions
|
|
@ -130,6 +130,7 @@ struct SingleRequest {
|
|||
BIT(download_done); /* set to TRUE when download is complete */
|
||||
BIT(eos_written); /* iff EOS has been written to client */
|
||||
BIT(eos_read); /* iff EOS has been read from the client */
|
||||
BIT(eos_sent); /* iff EOS has been sent to the server */
|
||||
BIT(rewind_read); /* iff reader needs rewind at next start */
|
||||
BIT(upload_done); /* set to TRUE when all request data has been sent */
|
||||
BIT(upload_aborted); /* set to TRUE when upload was aborted. Will also
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue