diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-19 17:13:35 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-19 17:13:35 +0100 |
commit | f80d27ae0f18f749f4f4900d2475c98bf12ec212 (patch) | |
tree | cd3c9eb9f214014c709b7777d9293948b1c5a741 | |
parent | c9ae6817d369d40d427b14a158b9f1a3d687d12d (diff) | |
download | rspamd-f80d27ae0f18f749f4f4900d2475c98bf12ec212.tar.gz rspamd-f80d27ae0f18f749f4f4900d2475c98bf12ec212.zip |
[Fix] Stop IO event on write finished in http connection
-rw-r--r-- | src/libutil/http_connection.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |