]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Create context for the main process
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Feb 2019 13:20:30 +0000 (13:20 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Feb 2019 13:20:30 +0000 (13:20 +0000)
src/rspamd.c

index 85191e9495d288db527a6414de467aa25527489f..ecf782864c479b5fe2ef840ffdd7861a5fdb3b19 100644 (file)
@@ -1489,6 +1489,9 @@ main (gint argc, gchar **argv, gchar **env)
        spawn_workers (rspamd_main, ev_base);
        rspamd_mempool_unlock_mutex (rspamd_main->start_mtx);
 
+       rspamd_main->http_ctx = rspamd_http_context_create (rspamd_main->cfg,
+                       ev_base);
+
        if (control_fd != -1) {
                msg_info_main ("listening for control commands on %s",
                                rspamd_inet_address_to_string (control_addr));