From d8833f06bd6272520a4d6994b54c0df43ca3c6f0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 25 Feb 2019 15:23:22 +0000 Subject: [Project] HTTP: Rework HTTP connections API to simplify its usage --- src/worker.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/worker.c') diff --git a/src/worker.c b/src/worker.c index 8fa02b51a..0e993b84c 100644 --- a/src/worker.c +++ b/src/worker.c @@ -331,9 +331,7 @@ rspamd_worker_error_handler (struct rspamd_http_connection *conn, GError *err) NULL, "application/json", task, - task->http_conn->fd, - &task->tv, - task->ev_base); + &task->tv); } } @@ -416,6 +414,7 @@ accept_socket (gint fd, short what, void *arg) task->http_conn = rspamd_http_connection_new ( ctx->http_ctx, + nfd, rspamd_worker_body_handler, rspamd_worker_error_handler, rspamd_worker_finish_handler, @@ -436,9 +435,7 @@ accept_socket (gint fd, short what, void *arg) rspamd_http_connection_read_message (task->http_conn, task, - nfd, - &ctx->io_tv, - ctx->ev_base); + &ctx->io_tv); } #ifdef WITH_HYPERSCAN -- cgit v1.2.3