diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-24 08:13:45 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-24 08:13:45 +0100 |
commit | 6b71fcb72fce2945cca43cc2acc141b507655273 (patch) | |
tree | 66b21dc2ce49ad60eea6eb01ab18a2fbbb0a84bf /src/rspamd_proxy.c | |
parent | 55159a5a8ef66e1a05fd93095623d90056c22fcd (diff) | |
download | rspamd-6b71fcb72fce2945cca43cc2acc141b507655273.tar.gz rspamd-6b71fcb72fce2945cca43cc2acc141b507655273.zip |
[Rework] Run post-loads when all initialization is completed
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r-- | src/rspamd_proxy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index 7134c4b52..a2521fec1 100644 --- a/src/rspamd_proxy.c +++ b/src/rspamd_proxy.c @@ -2040,8 +2040,7 @@ start_rspamd_proxy (struct rspamd_worker *worker) { ctx->cfg = worker->srv->cfg; ctx->ev_base = rspamd_prepare_worker (worker, "rspamd_proxy", - proxy_accept_socket, - TRUE); + proxy_accept_socket); ctx->resolver = dns_resolver_init (worker->srv->logger, ctx->ev_base, @@ -2075,6 +2074,8 @@ start_rspamd_proxy (struct rspamd_worker *worker) { rspamd_milter_init_library (ctx->spam_header, ctx->sessions_cache, ctx->discard_on_reject); + rspamd_lua_run_postloads (ctx->cfg->lua_state, ctx->cfg, ctx->ev_base, + worker); event_base_loop (ctx->ev_base, 0); rspamd_worker_block_signals (); |