diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-06-20 14:34:14 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-06-20 14:34:14 +0800 |
commit | d67d5483f4cc313b0a3f4d35893af79b549515d1 (patch) | |
tree | 4798d66ff0abd0fd57fd664c3f767d7166a2f4ec /camel | |
parent | 042202c1724851bc94e1972cf436a88e8aadac79 (diff) | |
download | gsoc2013-evolution-d67d5483f4cc313b0a3f4d35893af79b549515d1.tar gsoc2013-evolution-d67d5483f4cc313b0a3f4d35893af79b549515d1.tar.gz gsoc2013-evolution-d67d5483f4cc313b0a3f4d35893af79b549515d1.tar.bz2 gsoc2013-evolution-d67d5483f4cc313b0a3f4d35893af79b549515d1.tar.lz gsoc2013-evolution-d67d5483f4cc313b0a3f4d35893af79b549515d1.tar.xz gsoc2013-evolution-d67d5483f4cc313b0a3f4d35893af79b549515d1.tar.zst gsoc2013-evolution-d67d5483f4cc313b0a3f4d35893af79b549515d1.zip |
PR_IO_TIMEOUT_ERROR should map to ETIMEDOUT and not EAGAIN.
2002-06-20 Jeffrey Stedfast <fejj@ximian.com>
* camel-tcp-stream-ssl.c (set_errno): PR_IO_TIMEOUT_ERROR should
map to ETIMEDOUT and not EAGAIN.
(stream_connect): Reset the PR_Poll() timeout back to 2 minutes as
this wasn't the problem afterall.
svn path=/trunk/; revision=17246
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 7 | ||||
-rw-r--r-- | camel/camel-tcp-stream-ssl.c | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 6b027bd8fe..1840d4d134 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,10 @@ +2002-06-20 Jeffrey Stedfast <fejj@ximian.com> + + * camel-tcp-stream-ssl.c (set_errno): PR_IO_TIMEOUT_ERROR should + map to ETIMEDOUT and not EAGAIN. + (stream_connect): Reset the PR_Poll() timeout back to 2 minutes as + this wasn't the problem afterall. + 2002-06-19 Not Zed <NotZed@Ximian.com> * camel-mime-parser.c (folder_scan_drop_step): Drop back to diff --git a/camel/camel-tcp-stream-ssl.c b/camel/camel-tcp-stream-ssl.c index 97901940e4..31a69eb371 100644 --- a/camel/camel-tcp-stream-ssl.c +++ b/camel/camel-tcp-stream-ssl.c @@ -216,7 +216,6 @@ set_errno (int code) errno = EINTR; break; case PR_IO_PENDING_ERROR: - case PR_IO_TIMEOUT_ERROR: errno = EAGAIN; break; case PR_WOULD_BLOCK_ERROR: @@ -235,6 +234,7 @@ set_errno (int code) errno = ECONNREFUSED; break; case PR_CONNECT_TIMEOUT_ERROR: + case PR_IO_TIMEOUT_ERROR: errno = ETIMEDOUT; break; case PR_NOT_CONNECTED_ERROR: @@ -617,7 +617,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 ()); |