]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: When receiving 1xx response while waiting for 100, don't restart timeout.
authorTimo Sirainen <tss@iki.fi>
Wed, 5 Jun 2013 13:28:16 +0000 (16:28 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 5 Jun 2013 13:28:16 +0000 (16:28 +0300)
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.

src/lib-http/http-client-connection.c

index f40b1cd5584487dadd7932cd0c4b8c0acd16eab8..b4c8b234381c4659d236c43c9a3efbdee1da870b 100644 (file)
@@ -542,9 +542,6 @@ static void http_client_connection_input(struct connection *_conn)
                        /* 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;
                }