From: Vsevolod Stakhov Date: Thu, 19 Sep 2019 16:13:35 +0000 (+0100) Subject: [Fix] Stop IO event on write finished in http connection X-Git-Tag: 2.0~173 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f80d27ae0f18f749f4f4900d2475c98bf12ec212;p=thirdparty%2Frspamd.git [Fix] Stop IO event on write finished in http connection --- 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;