]> git.ipfire.org Git - thirdparty/curl.git/commit
cfilters: fix busy loop on blocked transfers
authorStefan Eissing <stefan@eissing.org>
Tue, 19 May 2026 13:31:45 +0000 (15:31 +0200)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 20 May 2026 17:51:34 +0000 (13:51 -0400)
commit5e4e62962c0f8536c612a5248e2ac4eb7d67ae66
treeee376be3a1ac77d3ec5ba9b7db83d62d0fc129a2
parentba7b65f95736c5fbef3ccfaeb945273379e003ee
cfilters: fix busy loop on blocked transfers

When a transfer gets paused after the connection has been established,
any data sitting in the kernel socket buffers will no longer get read.

Prevent the sockets form being added to the pollsets, because they
will trigger POLLIN endlessly and cause a busy poll loop. Same in event
based processing.

Reported-by: Harry Sintonen
Fixes https://github.com/curl/curl/issues/21671
Closes https://github.com/curl/curl/pull/21675
lib/cfilters.c