Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #282078

Category curl
Changed by Paolo Ganci <paolo.ganciohnoyoudont@nevis-security.com>
Changed at Thu 17 Sep 2026 22:04:01
Repository https://github.com/curl/curl.git
Project curl
Branch master
Revision 11df32bc8e2d92c50c209a454e6e93b52588b365

Comments

http2: don't send a CURLE_SEND_ERROR after a valid http2 response
Fixes #22984
Suggested-by: https://github.com/szedenik-adam

In this sequence:
 1. The client sends part of the request body.
 2. The server sends a complete early response and ends its response direction.
 3. The client resumes and finishes the request upload.
 4. Curl calls `cf_send(len=0, eos=1)` to finalize the request.
 5. libcurl sees `stream->closed` and unconditionally returns `CURLE_SEND_ERROR`, even though `stream->resp_hds_complete` is true and the response was valid.

change that at point 5 no CURLE_SEND_ERROR is sent if the repsonse is valid

Closes #22987

Changed files