commit d623fcb: [Minor] Create context for the main process

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Feb 20 13:21:05 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-02-20 13:20:30 +0000
URL: https://github.com/rspamd/rspamd/commit/d623fcbcf0ec66e0e0f1830993ecd03a585b2451 (HEAD -> master)

[Minor] Create context for the main process

---
 src/rspamd.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/rspamd.c b/src/rspamd.c
index 85191e949..ecf782864 100644
--- a/src/rspamd.c
+++ b/src/rspamd.c
@@ -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));


More information about the Commits mailing list