dovecot-2.2: lib-http: Optimized http_client_request_send_payloa...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 21 22:06:31 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/0d3a438c8928
changeset: 19176:0d3a438c8928
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Sep 22 01:05:09 2015 +0300
description:
lib-http: Optimized http_client_request_send_payload() fix
Badly copy&pasted my original fix, instead of noticing that Stephan's fix
was slightly different. Probably shouldn't have made actual difference
other than for performance.

diffstat:

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

diffs (21 lines):

diff -r 052d8d7654f6 -r 0d3a438c8928 src/lib-http/http-client-request.c
--- a/src/lib-http/http-client-request.c	Tue Sep 22 00:55:15 2015 +0300
+++ b/src/lib-http/http-client-request.c	Tue Sep 22 01:05:09 2015 +0300
@@ -981,7 +981,7 @@
 		if (!sending && req->payload_input != NULL)
 			i_stream_unref(&req->payload_input);
 	}
-	if (req->client->ioloop != NULL)
+	if (req->payload_wait && req->client->ioloop != NULL)
 		io_loop_stop(req->client->ioloop);
 }
 
@@ -1041,7 +1041,7 @@
 
 	if (req->queue != NULL)
 		http_client_queue_drop_request(req->queue, req);
-	if (req->client->ioloop != NULL)
+	if (req->payload_wait && req->client->ioloop != NULL)
 		io_loop_stop(req->client->ioloop);
 	http_client_request_unref(_req);
 }


More information about the dovecot-cvs mailing list