From 0988e1b1b1d0a3a82728df658d834aba199baf4c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 9 Jun 2016 16:35:31 +0100 Subject: [Feature] Add protection against open files limit and accepting sockets --- src/rspamd_proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rspamd_proxy.c') diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index 7ca0cc51d..d2ac90aa0 100644 --- a/src/rspamd_proxy.c +++ b/src/rspamd_proxy.c @@ -1232,7 +1232,7 @@ proxy_accept_socket (gint fd, short what, void *arg) ctx = worker->ctx; if ((nfd = - rspamd_accept_from_socket (fd, &addr)) == -1) { + rspamd_accept_from_socket (fd, &addr, worker->accept_events)) == -1) { msg_warn ("accept failed: %s", strerror (errno)); return; } -- cgit v1.2.3