Mercurial > dovecot > core-2.2
changeset 16218:3647c414c67d
lib-http: Fixed receiving 100-continue reply after we already timed out waiting for it.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 07 Apr 2013 14:56:19 +0300 |
parents | f1ba737bc241 |
children | abe0256dd3c0 |
files | src/lib-http/http-client-connection.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-http/http-client-connection.c Sun Apr 07 14:46:45 2013 +0300 +++ b/src/lib-http/http-client-connection.c Sun Apr 07 14:56:19 2013 +0300 @@ -484,6 +484,11 @@ ignored by a user agent. */ if (req->payload_sync && response->status == 100) { + if (conn->payload_continue) { + http_client_connection_debug(conn, + "Got 100-continue response after timeout"); + return; + } conn->payload_continue = TRUE; http_client_connection_debug(conn, "Got expected 100-continue response");