diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-06-07 13:53:08 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-06-07 13:53:08 +0800 |
commit | 88bf7aaa37eed28bbc8229c49d08a966e1cf0d67 (patch) | |
tree | d087604a1a3491cd65619c681d54ee2d50710796 /camel/camel-tcp-stream-ssl.c | |
parent | ac2d44aa7c080b7c3997a2aff13d6dcaa84b5ccc (diff) | |
download | gsoc2013-evolution-88bf7aaa37eed28bbc8229c49d08a966e1cf0d67.tar.gz gsoc2013-evolution-88bf7aaa37eed28bbc8229c49d08a966e1cf0d67.tar.zst gsoc2013-evolution-88bf7aaa37eed28bbc8229c49d08a966e1cf0d67.zip |
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
Diffstat (limited to 'camel/camel-tcp-stream-ssl.c')
-rw-r--r-- | camel/camel-tcp-stream-ssl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/camel/camel-tcp-stream-ssl.c b/camel/camel-tcp-stream-ssl.c index a06fb93d1c..eb299a91bb 100644 --- a/camel/camel-tcp-stream-ssl.c +++ b/camel/camel-tcp-stream-ssl.c @@ -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 ()); |