From 51c688ac2718e9d2d53295c3844fd2eaca4a65e0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 29 Oct 2019 14:37:39 +0000 Subject: [PATCH] [Minor] Update event loop timer in lua_http as it can cause troubles --- src/lua/lua_http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index a98040370..76c0c9055 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -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, -- 2.39.5