dovecot-2.2: lib-http: If connect() fails, destroy the http_clie...

dovecot at dovecot.org dovecot at dovecot.org
Thu Apr 4 14:30:57 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/74eb53f797d6
changeset: 16149:74eb53f797d6
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Apr 04 14:30:41 2013 +0300
description:
lib-http: If connect() fails, destroy the http_client_connection.
Fixes hanging requests when a peer has multiple connections.

diffstat:

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

diffs (12 lines):

diff -r 1bd5972eac0a -r 74eb53f797d6 src/lib-http/http-client-connection.c
--- a/src/lib-http/http-client-connection.c	Thu Apr 04 14:18:38 2013 +0300
+++ b/src/lib-http/http-client-connection.c	Thu Apr 04 14:30:41 2013 +0300
@@ -734,7 +734,7 @@
 		http_client_connection_error(conn, "connect(%s) failed: %m",
 					     _conn->name);
 		http_client_peer_connection_failure(conn->peer);
-
+		http_client_connection_unref(&conn);
 	} else {
 		http_client_connection_debug(conn, "Connected");
 		if (conn->peer->addr.ssl) {


More information about the dovecot-cvs mailing list