From f80d27ae0f18f749f4f4900d2475c98bf12ec212 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 19 Sep 2019 17:13:35 +0100 Subject: [PATCH] [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 6bb6aa7db3..0762fde810 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; -- 2.47.3