make the SSL connect use the same default connect timeout define as the
generic connect uses
This commit is contained in:
parent
4191741fb6
commit
ba40eccc90
@ -101,8 +101,6 @@
|
|||||||
/* The last #include file should be: */
|
/* The last #include file should be: */
|
||||||
#include "memdebug.h"
|
#include "memdebug.h"
|
||||||
|
|
||||||
#define DEFAULT_CONNECT_TIMEOUT 300000 /* milliseconds == five minutes */
|
|
||||||
|
|
||||||
static bool verifyconnect(curl_socket_t sockfd, int *error);
|
static bool verifyconnect(curl_socket_t sockfd, int *error);
|
||||||
|
|
||||||
static curl_socket_t
|
static curl_socket_t
|
||||||
|
@ -38,4 +38,7 @@ CURLcode Curl_connecthost(struct connectdata *conn,
|
|||||||
);
|
);
|
||||||
|
|
||||||
int Curl_ourerrno(void);
|
int Curl_ourerrno(void);
|
||||||
|
|
||||||
|
#define DEFAULT_CONNECT_TIMEOUT 300000 /* milliseconds == five minutes */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1269,7 +1269,7 @@ Curl_SSLConnect(struct connectdata *conn,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
/* no particular time-out has been set */
|
/* no particular time-out has been set */
|
||||||
timeout_ms=300000; /* milliseconds, default to five minutes */
|
timeout_ms= DEFAULT_CONNECT_TIMEOUT;
|
||||||
|
|
||||||
|
|
||||||
FD_ZERO(&writefd);
|
FD_ZERO(&writefd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user