]> granicus.if.org Git - curl/commit
curl_easy_perform: fix timeout handling
authorDaniel Stenberg <daniel@haxx.se>
Sat, 24 Nov 2018 22:20:19 +0000 (23:20 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 25 Nov 2018 10:25:43 +0000 (11:25 +0100)
commit34fe0e1622fd87f2945e734787bc29e314d253cc
tree016430aca52221cb38fd34fc2c0722a4eef062ab
parentae7a09db20081672242cbf69bb871f3ab1c5a24c
curl_easy_perform: fix timeout handling

curl_multi_wait() was erroneously used from within
curl_easy_perform(). It could lead to it believing there was no socket
to wait for and then instead sleep for a while instead of monitoring the
socket and then miss acting on that activity as swiftly as it should
(causing an up to 1000 ms delay).

Reported-by: Antoni Villalonga
Fixes #3305
Closes #3306
Closes #3308
lib/easy.c
lib/multi.c
lib/multiif.h