dovecot-2.2: lib-http: Fixed receiving 100-continue reply after ...

dovecot at dovecot.org dovecot at dovecot.org
Sun Apr 7 14:56:50 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/3647c414c67d
changeset: 16218:3647c414c67d
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Apr 07 14:56:19 2013 +0300
description:
lib-http: Fixed receiving 100-continue reply after we already timed out waiting for it.

diffstat:

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

diffs (15 lines):

diff -r f1ba737bc241 -r 3647c414c67d src/lib-http/http-client-connection.c
--- 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");


More information about the dovecot-cvs mailing list