]> granicus.if.org Git - php/commit
Avoid calling select if maxfd returned by curl_multi_fdset is -1
authorPierrick Charron <pierrick@php.net>
Sat, 22 Sep 2012 14:15:40 +0000 (10:15 -0400)
committerPierrick Charron <pierrick@php.net>
Sat, 22 Sep 2012 14:15:40 +0000 (10:15 -0400)
commit2e8ab65270e7d1ebe1ef0dfe13836c29d72c7010
treec98ce4511bfbdb917b2d9b2d2a710aadf9171ec5
parent46458c2c65b7eec1fbe07dedd97fb6990843f3d6
Avoid calling select if maxfd returned by curl_multi_fdset is -1

As per libcurl documentation :

When libcurl returns -1 in max_fd, it is because libcurl currently
does something that isn't possible for your application to monitor
with a socket and unfortunately you can then not know exactly when
the current action is completed using select().
ext/curl/multi.c