Searched refs:timeout (Results 1 - 25 of 1175) sorted by path

1234567891011>>

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/curl-7.23.1/source/docs/examples/
H A Devhiperfifo.c105 long timeout; member in struct:_SockInfo
199 fprintf(MSG_OUT, "last transfer done, kill timeout\n");
204 /* Called by libevent when our timeout expires */
H A Dfopen.c129 struct timeval timeout; local
147 /* set a suitable timeout to fail on */
148 timeout.tv_sec = 60; /* 1 minute */
149 timeout.tv_usec = 0;
153 timeout.tv_sec = curl_timeo / 1000;
154 if(timeout.tv_sec > 1)
155 timeout.tv_sec = 1;
157 timeout.tv_usec = (curl_timeo % 1000) * 1000;
169 rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
178 /* timeout o
[all...]
H A Dftpuploadresume.c84 long timeout, long tries)
101 if (timeout)
102 curl_easy_setopt(curlhandle, CURLOPT_FTP_RESPONSE_TIMEOUT, timeout);
83 upload(CURL *curlhandle, const char * remotepath, const char * localpath, long timeout, long tries) argument
H A Dghiper.c93 long timeout; member in struct:_SockInfo
152 /* Called by glib when our timeout expires */
170 struct timeval timeout; local
172 timeout.tv_sec = timeout_ms/1000;
173 timeout.tv_usec = (timeout_ms%1000)*1000;
176 timeout_ms, timeout.tv_sec, timeout.tv_usec);
203 MSG_OUT("last transfer done, kill timeout\n");
H A Dhiperfifo.c97 long timeout; member in struct:_SockInfo
108 struct timeval timeout; local
111 timeout.tv_sec = timeout_ms/1000;
112 timeout.tv_usec = (timeout_ms%1000)*1000;
113 fprintf(MSG_OUT, "multi_timer_cb: Setting timeout to %ld ms\n", timeout_ms);
114 evtimer_add(&g->timer_event, &timeout);
188 fprintf(MSG_OUT, "last transfer done, kill timeout\n");
197 /* Called by libevent when our timeout expires */
H A Dmulti-app.c74 struct timeval timeout; local
88 /* set a suitable timeout to play around with */
89 timeout.tv_sec = 1;
90 timeout.tv_usec = 0;
94 timeout.tv_sec = curl_timeo / 1000;
95 if(timeout.tv_sec > 1)
96 timeout.tv_sec = 1;
98 timeout.tv_usec = (curl_timeo % 1000) * 1000;
110 rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
116 case 0: /* timeout */
[all...]
H A Dmulti-debugcallback.c148 struct timeval timeout; local
162 /* set a suitable timeout to play around with */
163 timeout.tv_sec = 1;
164 timeout.tv_usec = 0;
168 timeout.tv_sec = curl_timeo / 1000;
169 if(timeout.tv_sec > 1)
170 timeout.tv_sec = 1;
172 timeout.tv_usec = (curl_timeo % 1000) * 1000;
184 rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
194 /* timeout o
[all...]
H A Dmulti-double.c63 struct timeval timeout; local
77 /* set a suitable timeout to play around with */
78 timeout.tv_sec = 1;
79 timeout.tv_usec = 0;
83 timeout.tv_sec = curl_timeo / 1000;
84 if(timeout.tv_sec > 1)
85 timeout.tv_sec = 1;
87 timeout.tv_usec = (curl_timeo % 1000) * 1000;
99 rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
107 /* timeout o
[all...]
H A Dmulti-post.c84 struct timeval timeout; local
98 /* set a suitable timeout to play around with */
99 timeout.tv_sec = 1;
100 timeout.tv_usec = 0;
104 timeout.tv_sec = curl_timeo / 1000;
105 if(timeout.tv_sec > 1)
106 timeout.tv_sec = 1;
108 timeout.tv_usec = (curl_timeo % 1000) * 1000;
120 rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
128 /* timeout o
[all...]
H A Dmulti-single.c59 struct timeval timeout; local
73 /* set a suitable timeout to play around with */
74 timeout.tv_sec = 1;
75 timeout.tv_usec = 0;
79 timeout.tv_sec = curl_timeo / 1000;
80 if(timeout.tv_sec > 1)
81 timeout.tv_sec = 1;
83 timeout.tv_usec = (curl_timeo % 1000) * 1000;
95 rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
105 /* timeout o
[all...]
H A Dsmtp-multi.c142 struct timeval timeout; local
156 /* set a suitable timeout to play around with */
157 timeout.tv_sec = 1;
158 timeout.tv_usec = 0;
162 timeout.tv_sec = curl_timeo / 1000;
163 if(timeout.tv_sec > 1)
164 timeout.tv_sec = 1;
166 timeout.tv_usec = (curl_timeo % 1000) * 1000;
178 rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
190 case 0: /* timeout */
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/curl-7.23.1/source/lib/
H A Dasyn-ares.c229 struct timeval *timeout; local
237 timeout = ares_timeout((ares_channel)conn->data->state.resolver, &maxtime,
241 (timeout->tv_sec * 1000) + (timeout->tv_usec/1000));
250 * 2) wait for the timeout period to check for action on ares' sockets.
293 above, as otherwise the ares name resolve won't timeout! */
359 long timeout; local
363 timeout = Curl_timeleft(data, &now, TRUE);
364 if(!timeout)
365 timeout
[all...]
H A Dconnect.c115 * transfer/connection. If the value is negative, the timeout time has already
123 * connect timeout is not taken into account!
135 /* if a timeout is set, use the most restrictive one */
137 if(data->set.timeout > 0)
144 timeout_ms = data->set.timeout;
150 if(data->set.timeout < data->set.connecttimeout)
151 timeout_ms = data->set.timeout;
158 /* if we're not during connect, there's no default timeout so if we're
173 /* avoid returning 0 as that means no timeout! */
205 /* now select() until we get connect or timeout */
[all...]
H A Deasy.c414 struct timeval timeout; local
451 /* timeout once per second */
452 timeout.tv_sec = 1;
453 timeout.tv_usec = 0;
457 rc = Curl_select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
467 /* timeout or data to send/receive => loop! */
H A Dftp.c337 /* if a timeout was already reached, bail out */
342 interval_ms = 1000; /* use 1 second timeout intervals */
351 case 0: /* timeout */
439 * servers use it to signal that idle session timeout has been exceeded.
466 long timeout; /* timeout in milliseconds */ local
485 /* check and reset timeout value every lap */
486 timeout = Curl_pp_state_timeout(pp);
488 if(timeout <=0 ) {
489 failf(data, "FTP response timeout");
[all...]
H A Dhostip.c513 * timeout. This function might return immediately if we're using asynch
521 * disabled by the application, then a nonzero timeout will cause a
522 * timeout after the specified number of milliseconds. Otherwise, timeout
549 volatile long timeout; local
558 /* got an already expired timeout */
563 /* Ignore the timeout when signals are disabled */
564 timeout = 0;
566 timeout = timeoutms;
568 if(!timeout)
[all...]
H A Dhttp_proxy.c73 long timeout = local
74 data->set.timeout?data->set.timeout:PROXY_TIMEOUT; /* in milliseconds */
189 /* if timeout is requested, find out how much remaining time we have */
190 check = timeout - /* timeout time */
193 failf(data, "Proxy CONNECT aborted due to timeout");
237 /* if timeout is requested, find out how much remaining time we have */
238 check = timeout - /* timeout tim
[all...]
H A Dnss.c1168 PRUint32 timeout; local
1375 /* check timeout situation */
1381 timeout = PR_MillisecondsToInterval((PRUint32) time_left);
1384 if(SSL_ForceHandshakeWithTimeout(connssl->handle, timeout) != SECSuccess) {
H A Dpingpong.c46 /* Returns timeout in ms. 0 or negative number means the timeout has already
62 /* Without a requested timeout, we only wait 'response_time' seconds for the
67 if(data->set.timeout) {
68 /* if timeout is requested, find out how much remaining time we have */
69 timeout2_ms = data->set.timeout - /* timeout time */
95 failf(data, "server response timeout");
131 failf(data, "server response timeout");
135 interval_ms = 1000; /* use 1 second timeout interval
[all...]
H A Dqssl.c38 #include "connect.h" /* for the connect timeout */
186 /* SSL_Handshake() timeout resolution is second, so round up. */
187 h->timeout = (timeout_ms + 1000 - 1) / 1000;
358 if(!what) { /* timeout */
359 failf(data, "SSL shutdown timeout");
H A Dsocks.c69 /* we already got the timeout */
370 long timeout; local
382 /* get timeout */
383 timeout = Curl_timeleft(data, NULL, TRUE);
385 if(timeout < 0) {
394 result = Curl_socket_ready(CURL_SOCKET_BAD, sock, timeout);
401 failf(conn->data, "SOCKS5: connection timeout");
433 result = Curl_socket_ready(sock, CURL_SOCKET_BAD, timeout);
440 failf(conn->data, "SOCKS5 read timeout");
H A Dtelnet.c1104 case 0: /* timeout (will never happen) */
1395 if(data->set.timeout) {
1397 if(Curl_tvdiff(now, conn->created) >= data->set.timeout) {
1439 case 0: /* timeout */
1511 if(data->set.timeout) {
1513 if(Curl_tvdiff(now, conn->created) >= data->set.timeout) {
H A Dtftp.c83 #define TFTP_OPTION_INTERVAL "timeout"
208 time_t maxtime, timeout; local
228 /* Set per-block timeout to total */
229 timeout = maxtime ;
232 state->retry_max = (int)timeout/5;
238 /* Compute the re-start interval to suit the timeout */
239 state->retry_time = (int)timeout/state->retry_max;
252 /* Set per-block timeout to total */
253 timeout = maxtime;
256 state->retry_max = (int)timeout/
[all...]
H A Dtransfer.c827 k->start100 = Curl_tvnow(); /* timeout count starts now */
830 /* set a timeout for the multi interface */
1057 /* no read no write, this is a timeout? */
1317 /* calculate upload rate-limitation timeout. */
1338 /* Calculate download rate-limitation timeout. */
1359 Curl_readwrite() for the timeout case and if we limit transfer speed we
1363 The no timeout for the first round is for the protocols for which data
1370 to work with, skip the timeout */
1392 case 0: /* timeout */
1512 if(data->set.timeout)
[all...]
H A Durl.c438 /* Destroy the timeout list that is held in the easy handle. It is
1662 data->set.timeout = va_arg(param, long) * 1000L;
1666 data->set.timeout = va_arg(param, long);
2081 * even when using a timeout.
2720 /* timeout */
3354 /* Set start time here for timeout purposes in the connect procedure, it
4593 /* don't return yet, we need to clean up the timeout first */
4615 /* don't return yet, we need to clean up the timeout first */

Completed in 204 milliseconds

1234567891011>>