Commit ba40eccc authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

make the SSL connect use the same default connect timeout define as the

generic connect uses
parent 4191741f
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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
+3 −0
Original line number Diff line number Diff line
@@ -38,4 +38,7 @@ CURLcode Curl_connecthost(struct connectdata *conn,
                          );

int Curl_ourerrno(void);

#define DEFAULT_CONNECT_TIMEOUT 300000 /* milliseconds == five minutes */

#endif
+1 −1
Original line number Diff line number Diff line
@@ -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);