diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-07-19 09:41:30 -0700 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-07-19 09:41:30 -0700 |
commit | 52735395c53a5cdf71d79ea9eb299572bf3f7249 (patch) | |
tree | b9d688745b6a2eb3fa49eb2a82652659022097e4 /src | |
parent | a278a936c67bf44bd13bc98e6a10048421cf8505 (diff) | |
download | rspamd-52735395c53a5cdf71d79ea9eb299572bf3f7249.tar.gz rspamd-52735395c53a5cdf71d79ea9eb299572bf3f7249.zip |
Turn off read polling on finished connection.
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/http.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c index fe3c11fea..420dd165c 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -525,6 +525,11 @@ rspamd_http_on_message_complete (http_parser* parser) ret = conn->finish_handler (conn, priv->msg); conn->finished = TRUE; rspamd_http_connection_unref (conn); + + /* Disable reading if we have read an HTTP message */ + if (event_pending (&priv->ev, EV_READ, NULL)) { + event_del (&priv->ev); + } } return ret; |