Lines Matching refs:timeout_ms
75 int Curl_wait_ms(int timeout_ms) in Curl_wait_ms() argument
86 if(!timeout_ms) in Curl_wait_ms()
88 if(timeout_ms < 0) { in Curl_wait_ms()
93 delay(timeout_ms); in Curl_wait_ms()
95 Sleep(timeout_ms); in Curl_wait_ms()
97 pending_ms = timeout_ms; in Curl_wait_ms()
113 pending_ms = timeout_ms - ELAPSED_MS(); in Curl_wait_ms()
148 time_t timeout_ms) /* milliseconds to wait */ in Curl_socket_check() argument
168 if(timeout_ms >= INT_MAX) in Curl_socket_check()
169 timeout_ms = INT_MAX; in Curl_socket_check()
175 r = Curl_wait_ms((int)timeout_ms); in Curl_socket_check()
184 if(timeout_ms > 0) { in Curl_socket_check()
185 pending_ms = (int)timeout_ms; in Curl_socket_check()
213 if(timeout_ms < 0) in Curl_socket_check()
215 else if(!timeout_ms) in Curl_socket_check()
223 if(timeout_ms > 0) { in Curl_socket_check()
224 pending_ms = (int)(timeout_ms - ELAPSED_MS()); in Curl_socket_check()
291 ptimeout = (timeout_ms < 0) ? NULL : &pending_tv; in Curl_socket_check()
295 if(timeout_ms > 0) { in Curl_socket_check()
299 else if(!timeout_ms) { in Curl_socket_check()
339 if(timeout_ms > 0) { in Curl_socket_check()
340 pending_ms = (int)(timeout_ms - ELAPSED_MS()); in Curl_socket_check()
392 int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms) in Curl_poll() argument
417 r = Curl_wait_ms(timeout_ms); in Curl_poll()
426 if(timeout_ms > 0) { in Curl_poll()
427 pending_ms = timeout_ms; in Curl_poll()
435 if(timeout_ms < 0) in Curl_poll()
437 else if(!timeout_ms) in Curl_poll()
445 if(timeout_ms > 0) { in Curl_poll()
446 pending_ms = (int)(timeout_ms - ELAPSED_MS()); in Curl_poll()
498 r = Curl_wait_ms(timeout_ms); in Curl_poll()
503 ptimeout = (timeout_ms < 0) ? NULL : &pending_tv; in Curl_poll()
507 if(timeout_ms > 0) { in Curl_poll()
511 else if(!timeout_ms) { in Curl_poll()
533 if(timeout_ms > 0) { in Curl_poll()
534 pending_ms = timeout_ms - ELAPSED_MS(); in Curl_poll()