aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-03-18 12:00:00 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-03-18 12:00:00 +0000
commit3a1974cf17f235b7bbb98de714fe0210ddb2c596 (patch)
tree7168784fff3f9d8b9bc19301cc34278218d4cd57 /src/worker.c
parentdbfdd2bf45134a467fed1e625c7bcbe93f199e24 (diff)
downloadrspamd-3a1974cf17f235b7bbb98de714fe0210ddb2c596.tar.gz
rspamd-3a1974cf17f235b7bbb98de714fe0210ddb2c596.zip
[Rework] Another iteration of HTTP interfaces rework
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/worker.c b/src/worker.c
index d81be54a1..77614ec13 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -412,14 +412,13 @@ accept_socket (gint fd, short what, void *arg)
http_opts = RSPAMD_HTTP_REQUIRE_ENCRYPTION;
}
- task->http_conn = rspamd_http_connection_new (
+ task->http_conn = rspamd_http_connection_new_server (
ctx->http_ctx,
nfd,
rspamd_worker_body_handler,
rspamd_worker_error_handler,
rspamd_worker_finish_handler,
- http_opts,
- RSPAMD_HTTP_SERVER);
+ http_opts);
rspamd_http_connection_set_max_size (task->http_conn, task->cfg->max_message);
worker->nconns++;
rspamd_mempool_add_destructor (task->task_pool,