]> git.ipfire.org Git - thirdparty/curl.git/commit
examples/10-at-a-time: fix possible skipped final transfers
authorDaniel Stenberg <daniel@haxx.se>
Tue, 22 Nov 2022 08:32:42 +0000 (03:32 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 22 Nov 2022 08:34:01 +0000 (03:34 -0500)
commita28a80d59e8f111fa5a23bfb76c8ff148333edb0
treed8d9c56f40c41b08e8ff496510cd78b95dd4baa7
parenta8861b6ccdd7ca35b6115588a578e36d765c9e38
examples/10-at-a-time: fix possible skipped final transfers

Prior to this change if curl_multi_perform returned 0 running handles
and then all remaining transfers were added, then the perform loop would
end immediately without performing those transfers.

Reported-by: Mikhail Kuznetsov
Fixes https://github.com/curl/curl/issues/9953
Closes https://github.com/curl/curl/pull/9954
docs/examples/10-at-a-time.c