dovecot-2.2: lib-http: When connection is freed, abort also the ...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jun 27 20:28:11 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/110d18bf9e30
changeset: 16568:110d18bf9e30
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jun 27 20:26:50 2013 +0300
description:
lib-http: When connection is freed, abort also the pending request.

diffstat:

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

diffs (14 lines):

diff -r 975fdf5a6987 -r 110d18bf9e30 src/lib-http/http-client-connection.c
--- a/src/lib-http/http-client-connection.c	Thu Jun 27 20:26:13 2013 +0300
+++ b/src/lib-http/http-client-connection.c	Thu Jun 27 20:26:50 2013 +0300
@@ -896,6 +896,10 @@
 		http_client_request_error(*req, HTTP_CLIENT_REQUEST_ERROR_ABORTED,
 			"Aborting");
 	}
+	if (conn->pending_request != NULL) {
+		http_client_request_error(conn->pending_request,
+			HTTP_CLIENT_REQUEST_ERROR_ABORTED, "Aborting");
+	}
 	array_free(&conn->request_wait_list);
 
 	if (conn->http_parser != NULL)


More information about the dovecot-cvs mailing list