/curl/tests/libtest/ |
H A D | lib1531.c | 70 struct timeval timeout; in test() local 86 timeout.tv_sec = 1; in test() 87 timeout.tv_usec = 0; in test() 91 curlx_mstotv(&timeout, curl_timeo); in test() 92 if(timeout.tv_sec > 1) { in test() 93 timeout.tv_sec = 1; in test() 94 timeout.tv_usec = 0; in test() 125 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
H A D | lib1507.c | 88 struct timeval timeout; in test() local 103 timeout.tv_sec = 1; in test() 104 timeout.tv_usec = 0; in test() 108 curlx_mstotv(&timeout, curl_timeo); in test() 109 if(timeout.tv_sec > 1) { in test() 110 timeout.tv_sec = 1; in test() 111 timeout.tv_usec = 0; in test() 124 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
H A D | lib597.c | 75 long timeout = -99; in test() local 93 multi_timeout(multi, &timeout); in test() 98 if(timeout != -1L) { in test() 101 itimeout = (timeout > (long)INT_MAX) ? INT_MAX : (int)timeout; in test() 103 itimeout = (int)timeout; in test()
|
H A D | lib591.c | 94 long timeout = -99; in test() local 112 multi_timeout(multi, &timeout); in test() 116 if(timeout != -1L) { in test() 119 itimeout = (timeout > (long)INT_MAX) ? INT_MAX : (int)timeout; in test() 121 itimeout = (int)timeout; in test()
|
H A D | lib1905.c | 68 struct timeval timeout; in test() local 79 curlx_mstotv(&timeout, max_tout); in test() 82 timeout.tv_sec = 0; in test() 83 timeout.tv_usec = 1000; in test() 86 select(MAX + 1, &R, &W, &E, &timeout); in test()
|
H A D | lib502.c | 56 struct timeval timeout; in test() local 60 timeout.tv_sec = 0; in test() 61 timeout.tv_usec = 100000L; /* 100 ms */ in test() 78 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
H A D | lib1592.c | 51 int timeout; in test() local 70 timeout = TEST_HANG_TIMEOUT * 2; in test() 85 timeout = TEST_HANG_TIMEOUT / 2; in test() 92 easy_setopt(curl, CURLOPT_TIMEOUT_MS, timeout); in test()
|
H A D | lib582.c | 126 struct timeval *timeout = userp; in curlTimerCallback() local 130 *timeout = tutil_tvnow(); in curlTimerCallback() 131 timeout->tv_usec += (int)timeout_ms * 1000; in curlTimerCallback() 134 timeout->tv_sec = -1; in curlTimerCallback() 168 static int getMicroSecondTimeout(struct timeval *timeout) in getMicroSecondTimeout() argument 174 timeout->tv_usec - now.tv_usec); in getMicroSecondTimeout() 230 struct timeval timeout = {-1, 0}; in test() local 295 multi_setopt(m, CURLMOPT_TIMERDATA, &timeout); in test() 309 if(timeout.tv_sec != -1) { in test() 310 int usTimeout = getMicroSecondTimeout(&timeout); in test() [all …]
|
H A D | lib560.c | 76 struct timeval timeout; in test() local 88 timeout.tv_sec = 1; in test() 89 timeout.tv_usec = 0; in test() 96 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
H A D | lib530.c | 153 struct timeval *timeout = userp; in curlTimerCallback() local 162 *timeout = tutil_tvnow(); in curlTimerCallback() 163 timeout->tv_usec += (int)timeout_ms * 1000; in curlTimerCallback() 166 timeout->tv_sec = -1; in curlTimerCallback() 200 static int getMicroSecondTimeout(struct timeval *timeout) in getMicroSecondTimeout() argument 206 timeout->tv_usec - now.tv_usec); in getMicroSecondTimeout() 264 struct timeval timeout = {-1, 0}; in testone() local 294 multi_setopt(m, CURLMOPT_TIMERDATA, &timeout); in testone() 313 if(timeout.tv_sec != -1) { in testone() 314 int usTimeout = getMicroSecondTimeout(&timeout); in testone() [all …]
|
H A D | lib1501.c | 63 struct timeval timeout; in test() local 72 timeout.tv_sec = 0; in test() 73 timeout.tv_usec = 100000L; /* 100 ms */ in test() 83 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
H A D | lib507.c | 59 struct timeval timeout; in test() local 68 timeout.tv_sec = 1; in test() 69 timeout.tv_usec = 0; in test() 75 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
H A D | lib573.c | 71 struct timeval timeout; in test() local 75 timeout.tv_sec = 0; in test() 76 timeout.tv_usec = 100000L; /* 100 ms */ in test() 93 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
H A D | lib575.c | 81 struct timeval timeout; in test() local 87 timeout.tv_sec = 0; in test() 88 timeout.tv_usec = 100000L; /* 100 ms */ in test() 98 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
H A D | libntlmconnect.c | 128 long timeout = -99; in test() local 191 multi_timeout(multi, &timeout); in test() 196 __FILE__, __LINE__, num_handles, timeout, running); in test() 198 if(timeout != -1L) { in test() 201 itimeout = (timeout > (long)INT_MAX) ? INT_MAX : (int)timeout; in test() 203 itimeout = (int)timeout; in test()
|
H A D | lib1502.c | 99 struct timeval timeout; in test() local 108 timeout.tv_sec = 1; in test() 109 timeout.tv_usec = 0; in test() 115 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
/curl/docs/libcurl/ |
H A D | curl_multi_timeout.md | 26 CURLMcode curl_multi_timeout(CURLM *multi_handle, long *timeout); 35 Proceeding means either doing the socket-style timeout action: call the 40 The timeout value returned in the long **timeout** points to, is in number 48 Note: if libcurl returns a -1 timeout here, it just means that libcurl 59 struct timeval timeout; 69 /* no set timeout, use a default */ 72 timeout.tv_sec = timeo / 1000; 73 timeout.tv_usec = (timeo % 1000) * 1000; 75 /* wait for activities no longer than the set timeout */ 76 select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); [all …]
|
/curl/docs/examples/ |
H A D | multi-legacy.c | 82 struct timeval timeout; in main() local 98 timeout.tv_sec = 1; in main() 99 timeout.tv_usec = 0; in main() 103 timeout.tv_sec = curl_timeo / 1000; in main() 104 if(timeout.tv_sec > 1) in main() 105 timeout.tv_sec = 1; in main() 107 timeout.tv_usec = (int)(curl_timeo % 1000) * 1000; in main() 137 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in main()
|
/curl/src/ |
H A D | tool_sleep.c | 53 struct timeval timeout; in tool_go_sleep() 54 timeout.tv_sec = ms / 1000L; in tool_go_sleep() 56 timeout.tv_usec = (int)ms * 1000; in tool_go_sleep() 57 select(0, NULL, NULL, NULL, &timeout); in tool_go_sleep()
|
/curl/docs/cmdline-opts/ |
H A D | expect100-timeout.md | 4 Long: expect100-timeout 9 Category: http timeout 12 - connect-timeout 14 - --expect100-timeout 2.5 -T file $URL 17 # `--expect100-timeout`
|
H A D | connect-timeout.md | 4 Long: connect-timeout 7 Category: connection timeout 13 - --connect-timeout 20 $URL 14 - --connect-timeout 3.14 $URL 17 # `--connect-timeout`
|
H A D | happy-eyeballs-timeout-ms.md | 4 Long: happy-eyeballs-timeout-ms 8 Category: connection timeout 12 - connect-timeout 14 - --happy-eyeballs-timeout-ms 500 $URL 17 # `--happy-eyeballs-timeout-ms`
|
/curl/tests/http/testenv/ |
H A D | nghttpx.py | 96 self._process.wait(timeout=2) 105 def reload(self, timeout: timedelta): 110 end_wait = datetime.now() + timeout 131 def wait_dead(self, timeout: timedelta): 133 try_until = datetime.now() + timeout 154 def wait_live(self, timeout: timedelta): 156 try_until = datetime.now() + timeout 262 def wait_dead(self, timeout: timedelta): 264 try_until = datetime.now() + timeout 275 def wait_live(self, timeout: timedelta): [all …]
|
/curl/docs/libcurl/opts/ |
H A D | CURLMOPT_TIMERFUNCTION.md | 17 CURLMOPT_TIMERFUNCTION - callback to receive timeout values 25 long timeout_ms, /* timeout in number of ms */ 45 time *replaces* the former timeout. The application should then effectively 46 cancel the old timeout and set a new timeout using this new expire time. 51 The **timer_callback** is called when the timeout expire time is changed. 65 zero timeout... 86 /* this is the new single timeout to wait for */ 89 /* delete the timeout, nothing to wait for now */
|
H A D | CURLOPT_CONNECTTIMEOUT_MS.md | 18 CURLOPT_CONNECTTIMEOUT_MS - timeout for the connect phase 26 long timeout); 32 connection phase to take. This timeout only limits the connection phase, it 37 Set this option to zero to switch to the default built-in connection timeout - 45 The connection timeout is included in the general all-covering 56 This option may cause libcurl to use the SIGALRM signal to timeout system
|