diff options
-rw-r--r-- | http.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -651,14 +651,14 @@ void run_active_slot(struct active_request_slot *slot) } if (slot->in_use && !data_received) { - max_fd = 0; + max_fd = -1; FD_ZERO(&readfds); FD_ZERO(&writefds); FD_ZERO(&excfds); + curl_multi_fdset(curlm, &readfds, &writefds, &excfds, &max_fd); select_timeout.tv_sec = 0; select_timeout.tv_usec = 50000; - select(max_fd, &readfds, &writefds, - &excfds, &select_timeout); + select(max_fd+1, &readfds, &writefds, &excfds, &select_timeout); } } #else |