aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/rspamd_control.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/libserver/rspamd_control.c
parentfcf1b617ed850e7cbab47b37b37eda6a7db3b52c (diff)
downloadrspamd-d8833f06bd6272520a4d6994b54c0df43ca3c6f0.tar.gz
rspamd-d8833f06bd6272520a4d6994b54c0df43ca3c6f0.zip
[Project] HTTP: Rework HTTP connections API to simplify its usage
Diffstat (limited to 'src/libserver/rspamd_control.c')
-rw-r--r--src/libserver/rspamd_control.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/libserver/rspamd_control.c b/src/libserver/rspamd_control.c
index fb0fc22b6..7131993ce 100644
--- a/src/libserver/rspamd_control.c
+++ b/src/libserver/rspamd_control.c
@@ -129,9 +129,7 @@ rspamd_control_send_error (struct rspamd_control_session *session,
NULL,
"application/json",
session,
- session->fd,
- &io_timeout,
- session->rspamd_main->ev_base);
+ &io_timeout);
}
static void
@@ -154,9 +152,7 @@ rspamd_control_send_ucl (struct rspamd_control_session *session,
NULL,
"application/json",
session,
- session->fd,
- &io_timeout,
- session->rspamd_main->ev_base);
+ &io_timeout);
}
static void
@@ -512,14 +508,15 @@ rspamd_control_process_client_socket (struct rspamd_main *rspamd_main,
session->fd = fd;
session->conn = rspamd_http_connection_new (rspamd_main->http_ctx,
+ fd,
NULL,
rspamd_control_error_handler,
rspamd_control_finish_handler,
0,
RSPAMD_HTTP_SERVER);
session->rspamd_main = rspamd_main;
- rspamd_http_connection_read_message (session->conn, session, session->fd,
- &io_timeout, rspamd_main->ev_base);
+ rspamd_http_connection_read_message (session->conn, session,
+ &io_timeout);
}
struct rspamd_worker_control_data {