]> git.ipfire.org Git - thirdparty/curl.git/commit
http2: when uploading data from stdin, fix eos forwarding
authorStefan Eissing <stefan@eissing.org>
Thu, 12 Sep 2024 08:03:33 +0000 (10:03 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 12 Sep 2024 11:46:38 +0000 (13:46 +0200)
commit70d3a9b6aa69ffdd9435e168463cfabd21e17cd1
tree56b59dd3c2e0868234a89ba5d5c4f836d09259b2
parent9dc0770e2c19403d2ae173749587c7861a8f5dbc
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
lib/http2.c
lib/request.c
lib/request.h
lib/transfer.c
tests/http/test_07_upload.py