From ba40eccc903990378f91ed218ed32da60bafe5b2 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Wed, 30 Jun 2004 09:22:48 +0000
Subject: make the SSL connect use the same default connect timeout define as
 the generic connect uses

---
 lib/connect.c | 2 --
 lib/connect.h | 3 +++
 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);
-- 
cgit v1.2.3