Mercurial > dovecot > core-2.2
changeset 16568:110d18bf9e30
lib-http: When connection is freed, abort also the pending request.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 27 Jun 2013 20:26:50 +0300 |
parents | 975fdf5a6987 |
children | 3fdfbabf3dcf |
files | src/lib-http/http-client-connection.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)