summaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-25 15:23:22 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-25 15:23:22 +0000
commitd8833f06bd6272520a4d6994b54c0df43ca3c6f0 (patch)
tree03656d17fd1979d4f456717264ac43c04a7cd09b /src/worker.c
parentfcf1b617ed850e7cbab47b37b37eda6a7db3b52c (diff)
downloadrspamd-d8833f06bd6272520a4d6994b54c0df43ca3c6f0.tar.gz
rspamd-d8833f06bd6272520a4d6994b54c0df43ca3c6f0.zip
[Project] HTTP: Rework HTTP connections API to simplify its usage
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c9
1 files changed, 3 insertions, 6 deletions
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