Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 158) sorted by relevance

1234567

/curl/tests/libtest/
H A Dlib1531.c70 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 Dlib1507.c88 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 Dlib597.c75 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 Dlib591.c94 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 Dlib1905.c68 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 Dlib502.c56 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 Dlib1592.c51 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 Dlib582.c126 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 Dlib560.c76 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 Dlib530.c153 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 Dlib1501.c63 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 Dlib507.c59 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 Dlib573.c71 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 Dlib575.c81 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 Dlibntlmconnect.c128 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 Dlib1502.c99 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 Dcurl_multi_timeout.md26 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 Dmulti-legacy.c82 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 Dtool_sleep.c53 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 Dexpect100-timeout.md4 Long: expect100-timeout
9 Category: http timeout
12 - connect-timeout
14 - --expect100-timeout 2.5 -T file $URL
17 # `--expect100-timeout`
H A Dconnect-timeout.md4 Long: connect-timeout
7 Category: connection timeout
13 - --connect-timeout 20 $URL
14 - --connect-timeout 3.14 $URL
17 # `--connect-timeout`
H A Dhappy-eyeballs-timeout-ms.md4 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 Dnghttpx.py96 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 DCURLMOPT_TIMERFUNCTION.md17 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 DCURLOPT_CONNECTTIMEOUT_MS.md18 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

Completed in 21 milliseconds

1234567