Up the timeout on the connect code to 2 minutes.

2002-06-07  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-tcp-stream-ssl.c (stream_connect): Up the timeout on the
	connect code to 2 minutes.

svn path=/trunk/; revision=17140
This commit is contained in:
Jeffrey Stedfast
2002-06-07 05:53:08 +00:00
committed by Jeffrey Stedfast
parent ac2d44aa7c
commit 88bf7aaa37
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-06-07 Jeffrey Stedfast <fejj@ximian.com>
* camel-tcp-stream-ssl.c (stream_connect): Up the timeout on the
connect code to 2 minutes.
2002-06-05 Dan Winship <danw@ximian.com>
* camel-mime-utils.c (header_decode_mailbox): Parse

View File

@ -556,11 +556,13 @@ enable_ssl (CamelTcpStreamSSL *ssl, PRFileDesc *fd)
return ssl_fd;
}
#define CONNECT_TIMEOUT PR_TicksPerSecond () * 120
static int
stream_connect (CamelTcpStream *stream, struct hostent *host, int port)
{
CamelTcpStreamSSL *ssl = CAMEL_TCP_STREAM_SSL (stream);
PRIntervalTime timeout = PR_INTERVAL_MIN;
PRIntervalTime timeout = CONNECT_TIMEOUT;
PRNetAddr netaddr;
PRFileDesc *fd;
@ -611,7 +613,7 @@ stream_connect (CamelTcpStream *stream, struct hostent *host, int port)
poll.in_flags = PR_POLL_WRITE | PR_POLL_EXCEPT;
poll.out_flags = 0;
timeout = PR_INTERVAL_MIN;
timeout = CONNECT_TIMEOUT;
if (PR_Poll (&poll, 1, timeout) == PR_FAILURE) {
set_errno (PR_GetError ());