From: Daniel Stenberg Date: Wed, 30 Jun 2004 09:22:48 +0000 (+0000) Subject: make the SSL connect use the same default connect timeout define as the X-Git-Tag: curl-7_12_1~179 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba40eccc903990378f91ed218ed32da60bafe5b2;p=curl make the SSL connect use the same default connect timeout define as the generic connect uses --- 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);