summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_tcp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-21 16:03:59 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-22 10:57:29 +0100
commit76530e7356c3741bb91e482b4727f1fab68c817a (patch)
tree53dac89d746a53ddc0e85e0d3285d060464a18b8 /src/lua/lua_tcp.c
parent25707133ae54daec513c3f8e3a6090f74d6e3f67 (diff)
downloadrspamd-76530e7356c3741bb91e482b4727f1fab68c817a.tar.gz
rspamd-76530e7356c3741bb91e482b4727f1fab68c817a.zip
[Minor] Fix some more issues with timeouts
Diffstat (limited to 'src/lua/lua_tcp.c')
-rw-r--r--src/lua/lua_tcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua/lua_tcp.c b/src/lua/lua_tcp.c
index ab00548a0..b45d5b645 100644
--- a/src/lua/lua_tcp.c
+++ b/src/lua/lua_tcp.c
@@ -1275,6 +1275,8 @@ lua_tcp_make_connection (struct lua_tcp_cbdata *cbd)
}
}
else {
+ rspamd_ev_watcher_init (&cbd->ev, cbd->fd, EV_READ|EV_WRITE,
+ lua_tcp_handler, cbd);
lua_tcp_register_event (cbd);
lua_tcp_plan_handler_event (cbd, TRUE, TRUE);
}