diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-06-30 09:22:48 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-06-30 09:22:48 +0000 |
commit | ba40eccc903990378f91ed218ed32da60bafe5b2 (patch) | |
tree | 1ceb2a26765d83a79f6375402f1b45bfe96d3a32 /lib | |
parent | 4191741fb673494875ef2b1da0468277463f7357 (diff) |
make the SSL connect use the same default connect timeout define as the
generic connect uses
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connect.c | 2 | ||||
-rw-r--r-- | lib/connect.h | 3 | ||||
-rw-r--r-- | lib/ssluse.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/lib/connect.c b/lib/connect.c index a30614334..46d7d8e14 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -101,8 +101,6 @@ /* The last #include file should be: */ #include "memdebug.h" -#define DEFAULT_CONNECT_TIMEOUT 300000 /* milliseconds == five minutes */ - static bool verifyconnect(curl_socket_t sockfd, int *error); static curl_socket_t diff --git a/lib/connect.h b/lib/connect.h index 6cf6b9a42..d39495cfc 100644 --- a/lib/connect.h +++ b/lib/connect.h @@ -38,4 +38,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, ); int Curl_ourerrno(void); + +#define DEFAULT_CONNECT_TIMEOUT 300000 /* milliseconds == five minutes */ + #endif diff --git a/lib/ssluse.c b/lib/ssluse.c index aa7da18e3..adebde294 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -1269,7 +1269,7 @@ Curl_SSLConnect(struct connectdata *conn, } else /* no particular time-out has been set */ - timeout_ms=300000; /* milliseconds, default to five minutes */ + timeout_ms= DEFAULT_CONNECT_TIMEOUT; FD_ZERO(&writefd); |