]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Stop IO event on write finished in http connection
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 19 Sep 2019 16:13:35 +0000 (17:13 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 19 Sep 2019 16:13:35 +0000 (17:13 +0100)
src/libutil/http_connection.c

index 6bb6aa7db38a1b1b6574b1a0c2b9bcedb655f903..0762fde810d23974831d10474664c1c1b2e6a280 100644 (file)
@@ -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;