curl_multi_wait: reduce timeout if the multi handle wants to
authorDaniel Stenberg <daniel@haxx.se>
Mon, 3 Jun 2013 18:19:51 +0000 (20:19 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 3 Jun 2013 18:27:08 +0000 (20:27 +0200)
commit29bf0598aad58d9da5dd8c5358f5175dae49026d
tree40e4c8e13427be600c197375ae880a9127d40458
parent239b58d34d323e8cf38b7be13a32dda188fec5d7
curl_multi_wait: reduce timeout if the multi handle wants to

If the multi handle's pending timeout is less than what is passed into
this function, it will now opt to use the shorter time anyway since it
is a very good hint that the handle wants to process something in a
shorter time than what otherwise would happen.

curl_multi_wait.3 was updated accordingly to clarify

This is the reason for bug #1224

Bug: http://curl.haxx.se/bug/view.cgi?id=1224
Reported-by: Andrii Moiseiev
docs/libcurl/curl_multi_wait.3
lib/multi.c