aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-28 18:09:36 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-28 18:09:36 +0000
commitd1ae7d8a26b940093aeb041356ca65beb6b0e5d0 (patch)
tree43ef88df165d8c9e0d838d43ce164848f7e25e3a /src/worker.c
parent149fad4a73a71ef670be9a01741a52efd76e35e6 (diff)
downloadrspamd-d1ae7d8a26b940093aeb041356ca65beb6b0e5d0.tar.gz
rspamd-d1ae7d8a26b940093aeb041356ca65beb6b0e5d0.zip
Start webui worker adopt to the HTTP world.
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/worker.c b/src/worker.c
index f11a288c8..2433965fb 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -346,7 +346,6 @@ accept_socket (gint fd, short what, void *arg)
worker->srv->stat->connections_count++;
new_task->resolver = ctx->resolver;
- msec_to_tv (ctx->timeout, &ctx->io_tv);
#if 0
/* Set up dispatcher */
@@ -426,6 +425,7 @@ start_worker (struct rspamd_worker *worker)
struct lua_locked_state *nL;
ctx->ev_base = prepare_worker (worker, "normal", sig_handler, accept_socket);
+ msec_to_tv (ctx->timeout, &ctx->io_tv);
/* SIGUSR2 handler */
signal_set (&worker->sig_ev_usr2, SIGUSR2, sigusr2_handler, (void *) worker);