Mercurial > dovecot > core-2.2
changeset 17276:6895214e33cf
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.
author | Stephan Bosch <stephan@rename-it.nl> |
---|---|
date | Sat, 26 Apr 2014 22:40:14 +0300 |
parents | 49e9d9743f6e |
children | b0add701dcee |
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 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