diff options
-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); |