]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Update event loop timer in lua_http as it can cause troubles
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 29 Oct 2019 14:37:39 +0000 (14:37 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 29 Oct 2019 14:37:39 +0000 (14:37 +0000)
src/lua/lua_http.c

index a980403705c4d0bb21d3fdf05e27a5f9b5db540b..76c0c9055483061dfbe3a11b0fc699319ace2e64 100644 (file)
@@ -392,6 +392,8 @@ lua_http_make_connection (struct lua_http_cbdata *cbd)
        if (cbd->flags & RSPAMD_LUA_HTTP_FLAG_KEEP_ALIVE) {
                cbd->fd = -1; /* FD is owned by keepalive connection */
 
+               /* Update timestamp to make a more precise timers */
+               ev_now_update (cbd->event_loop);
                cbd->conn = rspamd_http_connection_new_keepalive (
                                NULL, /* Default context */
                                NULL,