dovecot-2.2: lib-http: When receiving 1xx response while waiting...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 5 16:28:28 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/49e7a1c206f1
changeset: 16452:49e7a1c206f1
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 05 16:28:16 2013 +0300
description:
lib-http: When receiving 1xx response while waiting for 100, don't restart timeout.
The 100 response is missing only from HTTP/1.0 requests, which also didn't
allow any 1xx responses. So if a 1xx response is returned, a 100 response is
definitely also coming.

diffstat:

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

diffs (13 lines):

diff -r a551409911f9 -r 49e7a1c206f1 src/lib-http/http-client-connection.c
--- a/src/lib-http/http-client-connection.c	Wed Jun 05 16:19:38 2013 +0300
+++ b/src/lib-http/http-client-connection.c	Wed Jun 05 16:28:16 2013 +0300
@@ -542,9 +542,6 @@
 			/* ignore them for now */
 			http_client_connection_debug(conn,
 				"Got unexpected %u response; ignoring", response->status);
-			/* restart timeout */
-			conn->to_response =	timeout_add(HTTP_CLIENT_CONTINUE_TIMEOUT_MSECS,
-				http_client_connection_continue_timeout, conn);
 			continue;
 		} 
 


More information about the dovecot-cvs mailing list