dovecot-2.2: lib-http: Don't create a new HTTP connection when t...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 5 15:09:11 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/686d2dc1d8dd
changeset: 16449:686d2dc1d8dd
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 05 15:08:59 2013 +0300
description:
lib-http: Don't create a new HTTP connection when there is already one connecting.

diffstat:

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

diffs (12 lines):

diff -r fa87cd91a11a -r 686d2dc1d8dd src/lib-http/http-client-peer.c
--- a/src/lib-http/http-client-peer.c	Sat Jun 01 17:17:47 2013 +0300
+++ b/src/lib-http/http-client-peer.c	Wed Jun 05 15:08:59 2013 +0300
@@ -147,7 +147,7 @@
 		   finished connecting successfully. */
 		new_connections = 0;
 	} else if (num_urgent == 0) {
-		new_connections = 1;
+		new_connections = connecting == 0 ? 1 : 0;
 	} else {
 		new_connections = (num_urgent > connecting ? num_urgent - connecting : 0);
 	}


More information about the dovecot-cvs mailing list