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

Change #238047

Category curl
Changed by Stefan Eissing <stefanohnoyoudont@eissing.org>
Changed at Mon 30 Jun 2025 13:44:24
Repository https://github.com/curl/curl.git
Project curl
Branch master
Revision 21ecc7e376e449685bd40ccd6b91564af7637402

Comments

cf-socket: make socket data_pending a nop
Eliminating the socket readability check in the socket connection
filters for the 'data_pending' callback. Improves performance of
handling of transfers, up to ~30%, depending on parallelism and response
size.

Whatever `data_pending()` once was, its semantics are now:
"Is there anything buffered in the connection filters that needs
 receive?"
Any checks of the socket's readability are done via `multi_wait()`
and friends.

Fix the one place in HTTP/1 proxy code that checked `data_pending()` and
did an early return if false. Remove that check and actually try to
receive data every time.

Closes #17785

Changed files