commit 51c688a: [Minor] Update event loop timer in lua_http as it can cause troubles
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Oct 29 16:00:08 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-29 14:37:39 +0000
URL: https://github.com/rspamd/rspamd/commit/51c688ac2718e9d2d53295c3844fd2eaca4a65e0
[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,
More information about the Commits
mailing list