diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-06-13 19:27:12 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-06-13 19:27:12 +0200 |
commit | 0feeab7802dd2a6465d22d153d8d36b2cca99b96 (patch) | |
tree | 2c830a356ee4e24e6eb9414958a953ffa7d14875 /docs/libcurl/curl_global_cleanup.3 | |
parent | f24dc09d209a2f91ca38d854f0c15ad93f3d7e2d (diff) |
curl_easy_perform: avoid busy-looping
When curl_multi_wait() finds no file descriptor to wait for, it returns
instantly and this must be handled gracefully within curl_easy_perform()
or cause a busy-loop. Starting now, repeated fast returns without any
file descriptors is detected and a gradually increasing sleep will be
used (up to a max of 1000 milliseconds) before continuing the loop.
Bug: http://curl.haxx.se/bug/view.cgi?id=1238
Reported-by: Miguel Angel
Diffstat (limited to 'docs/libcurl/curl_global_cleanup.3')
0 files changed, 0 insertions, 0 deletions