dovecot-2.2: lib-http: If connection times out, set the stream's...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jun 27 20:28:11 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/3fdfbabf3dcf
changeset: 16569:3fdfbabf3dcf
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jun 27 20:27:57 2013 +0300
description:
lib-http: If connection times out, set the stream's errno to ETIMEDOUT in case it's used.

diffstat:

 src/lib-http/http-client-connection.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 110d18bf9e30 -r 3fdfbabf3dcf src/lib-http/http-client-connection.c
--- a/src/lib-http/http-client-connection.c	Thu Jun 27 20:26:50 2013 +0300
+++ b/src/lib-http/http-client-connection.c	Thu Jun 27 20:27:57 2013 +0300
@@ -214,6 +214,7 @@
 {
 	unsigned int msecs = conn->client->set.request_timeout_msecs;
 
+	conn->conn.input->stream_errno = ETIMEDOUT;
 	http_client_connection_abort_temp_error(&conn,
 		HTTP_CLIENT_REQUEST_ERROR_TIMED_OUT, t_strdup_printf(
 		"No response for request in %u.%03u secs",


More information about the dovecot-cvs mailing list