commit f80d27a: [Fix] Stop IO event on write finished in http connection

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Sep 19 16:21:07 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-09-19 17:13:35 +0100
URL: https://github.com/rspamd/rspamd/commit/f80d27ae0f18f749f4f4900d2475c98bf12ec212 (HEAD -> master)

[Fix] Stop IO event on write finished in http connection

---
 src/libutil/http_connection.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/libutil/http_connection.c b/src/libutil/http_connection.c
index 6bb6aa7db..0762fde81 100644
--- a/src/libutil/http_connection.c
+++ b/src/libutil/http_connection.c
@@ -846,6 +846,8 @@ rspamd_http_write_helper (struct rspamd_http_connection *conn)
 	return;
 
 call_finish_handler:
+	rspamd_ev_watcher_stop (priv->ctx->event_loop, &priv->ev);
+
 	if ((conn->opts & RSPAMD_HTTP_CLIENT_SIMPLE) == 0) {
 		rspamd_http_connection_ref (conn);
 		conn->finished = TRUE;


More information about the Commits mailing list