]> git.ipfire.org Git - thirdparty/curl.git/commit
transfer: fix sendrecv() without interim poll
authorStefan Eissing <stefan@eissing.org>
Fri, 13 Sep 2024 16:36:53 +0000 (18:36 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 13 Sep 2024 20:21:33 +0000 (22:21 +0200)
commita33bcc9b53b9d6ea9f879624e8abea0b012b008e
tree60da3c6b2466af9fed713d2bd44b042d91cf871d
parent89728451234ae39a001098157d43633d7eb3f3db
transfer: fix sendrecv() without interim poll

There was a "clever" optimization that skipped sendrecv() handling when
the transfer's pollset was empty. This happens for paused transfers, for
example.

Unforunately, if the libcurl application never calls curl_multi_poll(),
the pollset is and will aways remain empty, prevent the transfer from
progressing.

Remove this "optimization" and always try send/receive where applicable.

Fixes #14898
Reported-by: Victor Kislov
Closes #14901
lib/transfer.c