Lines Matching refs:timeout_ms
70 int Curl_wait_ms(timediff_t timeout_ms) in Curl_wait_ms() argument
74 if(!timeout_ms) in Curl_wait_ms()
76 if(timeout_ms < 0) { in Curl_wait_ms()
81 delay(timeout_ms); in Curl_wait_ms()
85 if(timeout_ms >= ULONG_MAX) in Curl_wait_ms()
86 timeout_ms = ULONG_MAX-1; in Curl_wait_ms()
89 Sleep((ULONG)timeout_ms); in Curl_wait_ms()
95 r = select(0, NULL, NULL, NULL, curlx_mstotv(&pending_tv, timeout_ms)); in Curl_wait_ms()
124 timediff_t timeout_ms) /* milliseconds to wait */ in our_select() argument
135 return Curl_wait_ms(timeout_ms); in our_select()
139 ptimeout = curlx_mstotv(&pending_tv, timeout_ms); in our_select()
188 timediff_t timeout_ms) /* milliseconds to wait */ in Curl_socket_check() argument
197 return Curl_wait_ms(timeout_ms); in Curl_socket_check()
225 r = Curl_poll(pfd, (unsigned int)num, timeout_ms); in Curl_socket_check()
268 int Curl_poll(struct pollfd ufds[], unsigned int nfds, timediff_t timeout_ms) in Curl_poll() argument
292 return Curl_wait_ms(timeout_ms); in Curl_poll()
304 if(timeout_ms > INT_MAX) in Curl_poll()
305 timeout_ms = INT_MAX; in Curl_poll()
307 if(timeout_ms > 0) in Curl_poll()
308 pending_ms = (int)timeout_ms; in Curl_poll()
309 else if(timeout_ms < 0) in Curl_poll()
361 r = our_select(maxfd, &fds_read, &fds_write, &fds_err, timeout_ms); in Curl_poll()