Home
last modified time | relevance | path

Searched refs:seconds (Results 1 – 25 of 66) sorted by relevance

123

/curl/tests/unit/
H A Dunit1399.c65 static void expect_timer_seconds(struct Curl_easy *data, int seconds) in expect_timer_seconds() argument
68 msnprintf(msg, sizeof(msg), "about %d seconds should have passed", seconds); in expect_timer_seconds()
69 fail_unless(usec_matches_seconds(data->progress.t_nslookup, seconds), msg); in expect_timer_seconds()
70 fail_unless(usec_matches_seconds(data->progress.t_connect, seconds), msg); in expect_timer_seconds()
71 fail_unless(usec_matches_seconds(data->progress.t_appconnect, seconds), msg); in expect_timer_seconds()
72 fail_unless(usec_matches_seconds(data->progress.t_pretransfer, seconds), in expect_timer_seconds()
74 fail_unless(usec_matches_seconds(data->progress.t_starttransfer, seconds), in expect_timer_seconds()
/curl/docs/libcurl/opts/
H A DCURLOPT_CONNECTTIMEOUT.md30 Pass a long. It sets the maximum time in seconds that you allow the connection
37 300 seconds. See also the CURLOPT_TIMEOUT(3) option.
48 to 5, the operation can never last longer than 5 seconds, and the connection
49 phase cannot last longer than 3 seconds.
52 to 2, the operation can never last longer than 2 seconds. Including the
74 /* complete connection within 10 seconds */
H A DCURLOPT_TCP_KEEPIDLE.md30 Pass a long. Sets the *delay*, in seconds, to wait while the connection is
55 /* set keep-alive idle time to 120 seconds */
58 /* interval time between keep-alive probes: 60 seconds */
H A DCURLOPT_TCP_KEEPINTVL.md30 Pass a long. Sets the interval, in seconds, to wait between sending keepalive
54 /* set keep-alive idle time to 120 seconds */
57 /* interval time between keep-alive probes: 60 seconds */
H A DCURLINFO_RETRY_AFTER.md31 Pass a pointer to a curl_off_t variable to receive the number of seconds the
36 CURLINFO_RETRY_AFTER(3) always returns the number of seconds to wait -
59 printf("Wait for %" CURL_FORMAT_CURL_OFF_T " seconds\n", wait);
H A DCURLOPT_MAXAGE_CONN.md31 Pass a long as parameter containing *age* - the maximum time in seconds
45 118 seconds
58 /* only allow 30 seconds idle time */
H A DCURLOPT_MAXLIFETIME_CONN.md33 seconds, since the creation of the connection, that you allow an existing
47 0 seconds (i.e., disabled)
60 /* only allow each connection to be reused for 30 seconds */
H A DCURLOPT_DNS_CACHE_TIMEOUT.md32 Pass a long, this sets the timeout in seconds. Name resolve results are kept
33 in memory and used for this number of seconds. Set to zero to completely
35 default, libcurl caches this info for 60 seconds.
76 two seconds have passed since the previous name resolve */
H A DCURLOPT_TIMEOUT.md32 seconds that you allow the entire transfer operation to take. The whole thing,
52 to 5, the operation can never last longer than 5 seconds.
55 to 2, the operation can never last longer than 2 seconds.
76 /* complete within 20 seconds */
H A DCURLOPT_LOW_SPEED_TIME.md30 Pass a long as parameter. It contains the time in number seconds that the
49 /* abort if slower than 30 bytes/sec during 60 seconds */
H A DCURLOPT_LOW_SPEED_LIMIT.md34 CURLOPT_LOW_SPEED_TIME(3) seconds for libcurl to consider it to be too
52 /* abort if slower than 30 bytes/sec during 60 seconds */
H A DCURLINFO_TOTAL_TIME.md31 Pass a pointer to a double to receive the total time in seconds for the
33 represents the time in seconds, including fractions.
H A DCURLOPT_TCP_KEEPALIVE.md56 /* keep-alive idle time to 120 seconds */
59 /* interval time between keep-alive probes: 60 seconds */
H A DCURLOPT_TCP_KEEPCNT.md56 /* set keep-alive idle time to 120 seconds */
59 /* interval time between keep-alive probes: 60 seconds */
/curl/src/
H A Dtool_progress.c107 static void time2str(char *r, curl_off_t seconds) in time2str() argument
110 if(seconds <= 0) { in time2str()
114 h = seconds / CURL_OFF_T_C(3600); in time2str()
116 curl_off_t m = (seconds - (h*CURL_OFF_T_C(3600))) / CURL_OFF_T_C(60); in time2str()
117 curl_off_t s = (seconds - (h*CURL_OFF_T_C(3600))) - (m*CURL_OFF_T_C(60)); in time2str()
124 curl_off_t d = seconds / CURL_OFF_T_C(86400); in time2str()
125 h = (seconds - (d*CURL_OFF_T_C(86400))) / CURL_OFF_T_C(3600); in time2str()
/curl/tests/http/
H A Dtest_03_goaway.py77 assert r.duration >= timedelta(seconds=count)
102 assert nghttpx.reload(timeout=timedelta(seconds=2))
106 assert r.duration >= timedelta(seconds=count-1)
145 assert r.duration >= timedelta(seconds=count)
/curl/docs/cmdline-opts/
H A Dspeed-limit.md22 number of seconds, it gets aborted. The time period is set with --speed-time
23 and is 30 seconds by default.
H A Dexpect100-timeout.md5 Arg: <seconds>
19 Maximum time in seconds that you allow curl to wait for a 100-continue
H A Dconnect-timeout.md5 Arg: <seconds>
19 Maximum time in seconds that you allow curl's connection to take. This only
H A Dmax-time.md6 Arg: <seconds>
21 Set maximum time in seconds that you allow each transfer to take. Prevents
H A Dkeepalive-time.md5 Arg: <seconds>
30 If unspecified, the option defaults to 60 seconds.
/curl/tests/
H A Dserverhelp.pm78 my ($seconds, $usec) = gettimeofday();
80 localtime($seconds);
84 my $seconds = time();
86 localtime($seconds);
H A Dprocesshelp.pm77 my ($seconds) = @_;
80 Time::HiRes::sleep($seconds);
83 Win32::Sleep($seconds*1000);
86 select(undef, undef, undef, $seconds);
/curl/tests/data/
H A Dtest123832 # for another 5 seconds after this test has already terminated.
41 # if less than 1000 bytes/sec within 2 seconds, abort!
/curl/lib/
H A Dprogress.c40 static void time2str(char *r, curl_off_t seconds) in time2str() argument
43 if(seconds <= 0) { in time2str()
47 h = seconds / CURL_OFF_T_C(3600); in time2str()
49 curl_off_t m = (seconds - (h*CURL_OFF_T_C(3600))) / CURL_OFF_T_C(60); in time2str()
50 curl_off_t s = (seconds - (h*CURL_OFF_T_C(3600))) - (m*CURL_OFF_T_C(60)); in time2str()
56 curl_off_t d = seconds / CURL_OFF_T_C(86400); in time2str()
57 h = (seconds - (d*CURL_OFF_T_C(86400))) / CURL_OFF_T_C(3600); in time2str()

Completed in 26 milliseconds

123