changeset 16452:49e7a1c206f1

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.
author Timo Sirainen <tss@iki.fi>
date Wed, 05 Jun 2013 16:28:16 +0300
parents a551409911f9
children bcf93c30a500
files src/lib-http/http-client-connection.c
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;
 		}