dovecot-2.2: lib-http: Fixed problem with connections idling ind...

dovecot at dovecot.org dovecot at dovecot.org
Sat Apr 26 19:41:52 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/6895214e33cf
changeset: 17276:6895214e33cf
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Sat Apr 26 22:40:14 2014 +0300
description:
lib-http: Fixed problem with connections idling indefinitely.
Forgot to check for idle connections when request finished after waiting
for payload to be read by application.

diffstat:

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

diffs (14 lines):

diff -r 49e9d9743f6e -r 6895214e33cf src/lib-http/http-client-connection.c
--- a/src/lib-http/http-client-connection.c	Fri Apr 25 19:01:09 2014 +0300
+++ b/src/lib-http/http-client-connection.c	Sat Apr 26 22:40:14 2014 +0300
@@ -409,6 +409,10 @@
 	http_client_request_finish(&req);
 	conn->pending_request = NULL;
 
+	/* room for new requests */
+	if (http_client_connection_is_ready(conn))
+		http_client_peer_trigger_request_handler(conn->peer);
+
 	/* input stream may have pending input. make sure input handler
 	   gets called (but don't do it directly, since we get get here
 	   somewhere from the API user's code, which we can't really know what


More information about the dovecot-cvs mailing list