aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-06-07 13:53:08 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-06-07 13:53:08 +0800
commit88bf7aaa37eed28bbc8229c49d08a966e1cf0d67 (patch)
treed087604a1a3491cd65619c681d54ee2d50710796
parentac2d44aa7c080b7c3997a2aff13d6dcaa84b5ccc (diff)
downloadgsoc2013-evolution-88bf7aaa37eed28bbc8229c49d08a966e1cf0d67.tar
gsoc2013-evolution-88bf7aaa37eed28bbc8229c49d08a966e1cf0d67.tar.gz
gsoc2013-evolution-88bf7aaa37eed28bbc8229c49d08a966e1cf0d67.tar.bz2
gsoc2013-evolution-88bf7aaa37eed28bbc8229c49d08a966e1cf0d67.tar.lz
gsoc2013-evolution-88bf7aaa37eed28bbc8229c49d08a966e1cf0d67.tar.xz
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
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-tcp-stream-ssl.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index f9a5c7816d..6292842097 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -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
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 ());