]> git.ipfire.org Git - thirdparty/curl.git/commit
transfer: conn close on paused upload
authorStefan Eissing <stefan@eissing.org>
Wed, 22 May 2024 14:52:16 +0000 (16:52 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 23 May 2024 21:55:09 +0000 (23:55 +0200)
commit30de937bda0f65d47059d579f8a21e48ad721e28
tree8a41d9a72d4496c85c74d53c12e53994a30b3eda
parentc5e322fb50b73abe4c5f19b8120502865886b999
transfer: conn close on paused upload

- add 2 variations on test_07_42 which PAUSEs uploads
  and response connections terminating either right away
  or after the 100-continue response
- when detecting the connection being closed in transfer.c
  readwrite_data(), clear ALL send bits in data->req.keepon.
  It no longer makes send to wait for a KEEP_SEND_PAUSE or HOLD.
- in the protocol client writer add the check for incomplete
  response bodies. When an EOS is seen and the length is known,
  check that and fail if bytes are missing.

Reported-by: Sergey Bronnikov
Fixes #13740
Closes #13750
lib/sendf.c
lib/transfer.c
tests/http/clients/upload-pausing.c
tests/http/test_07_upload.py
tests/http/testenv/mod_curltest/mod_curltest.c