mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
connection timeout is now supported
This commit is contained in:
parent
e0a6d20e20
commit
d445eac162
@ -9,10 +9,6 @@ TODO
|
|||||||
Things to do in project cURL. Please tell me what you think, contribute and
|
Things to do in project cURL. Please tell me what you think, contribute and
|
||||||
send me patches that improve things!
|
send me patches that improve things!
|
||||||
|
|
||||||
To do for the 7.7 release:
|
|
||||||
|
|
||||||
* Add a special connection-timeout that only goes for the connection phase.
|
|
||||||
|
|
||||||
To do for the 7.8 release:
|
To do for the 7.8 release:
|
||||||
|
|
||||||
* Make SSL session ids get used if multiple HTTPS documents from the same
|
* Make SSL session ids get used if multiple HTTPS documents from the same
|
||||||
|
13
docs/curl.1
13
docs/curl.1
@ -2,7 +2,7 @@
|
|||||||
.\" nroff -man curl.1
|
.\" nroff -man curl.1
|
||||||
.\" Written by Daniel Stenberg
|
.\" Written by Daniel Stenberg
|
||||||
.\"
|
.\"
|
||||||
.TH curl 1 "14 March 2001" "Curl 7.7" "Curl Manual"
|
.TH curl 1 "15 March 2001" "Curl 7.7" "Curl Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
curl \- get a URL with FTP, TELNET, LDAP, GOPHER, DICT, FILE, HTTP or
|
curl \- get a URL with FTP, TELNET, LDAP, GOPHER, DICT, FILE, HTTP or
|
||||||
HTTPS syntax.
|
HTTPS syntax.
|
||||||
@ -91,6 +91,14 @@ also be enforced by using an URL that ends with ";type=A". This option causes
|
|||||||
data sent to stdout to be in text mode for win32 systems.
|
data sent to stdout to be in text mode for win32 systems.
|
||||||
|
|
||||||
If this option is used twice, the second one will disable ASCII usage.
|
If this option is used twice, the second one will disable ASCII usage.
|
||||||
|
.IP "--connect-timeout <seconds>"
|
||||||
|
Maximum time in seconds that you allow the connection to the server to take.
|
||||||
|
This only limits the connection phase, once curl has connected this option is
|
||||||
|
of no more use. This option doesn't work in win32 systems. See also the
|
||||||
|
.I "--max-time"
|
||||||
|
option.
|
||||||
|
|
||||||
|
If this option is used serveral times, the last one will be used.
|
||||||
.IP "-c/--continue"
|
.IP "-c/--continue"
|
||||||
.B Deprecated. Use '-C -' instead.
|
.B Deprecated. Use '-C -' instead.
|
||||||
Continue/Resume a previous file transfer. This instructs curl to
|
Continue/Resume a previous file transfer. This instructs curl to
|
||||||
@ -295,6 +303,9 @@ If this option is used twice, the second will again disable location following.
|
|||||||
Maximum time in seconds that you allow the whole operation to take. This is
|
Maximum time in seconds that you allow the whole operation to take. This is
|
||||||
useful for preventing your batch jobs from hanging for hours due to slow
|
useful for preventing your batch jobs from hanging for hours due to slow
|
||||||
networks or links going down. This doesn't work fully in win32 systems.
|
networks or links going down. This doesn't work fully in win32 systems.
|
||||||
|
See also the
|
||||||
|
.I "--connect-timeout"
|
||||||
|
option.
|
||||||
|
|
||||||
If this option is used serveral times, the last one will be used.
|
If this option is used serveral times, the last one will be used.
|
||||||
.IP "-M/--manual"
|
.IP "-M/--manual"
|
||||||
|
@ -470,6 +470,15 @@ the more secure will the SSL connection become.
|
|||||||
.B CURLOPT_FORBID_REUSE
|
.B CURLOPT_FORBID_REUSE
|
||||||
Pass a char * to the zero terminated path name to the Entropy Gathering Daemon
|
Pass a char * to the zero terminated path name to the Entropy Gathering Daemon
|
||||||
socket. It will be used to seed the random engine for SSL.
|
socket. It will be used to seed the random engine for SSL.
|
||||||
|
.TP
|
||||||
|
.B CURLOPT_CONNECTTIMEOUT
|
||||||
|
Pass a long. It should contain the maximum time in seconds that you allow the
|
||||||
|
connection to the server to take. This only limits the connection phase, once
|
||||||
|
it has connected, this option is of no more use. Set to zero to disable
|
||||||
|
connection timeout (it will then only timeout on the system's internal
|
||||||
|
timeouts). This option doesn't work in win32 systems. See also the
|
||||||
|
.I CURLOPT_TIMEOUT
|
||||||
|
option.
|
||||||
.PP
|
.PP
|
||||||
.SH RETURN VALUE
|
.SH RETURN VALUE
|
||||||
0 means the option was set properly, non-zero means an error as
|
0 means the option was set properly, non-zero means an error as
|
||||||
|
Loading…
Reference in New Issue
Block a user