aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/addr.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-09 16:35:31 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-09 16:35:31 +0100
commit0988e1b1b1d0a3a82728df658d834aba199baf4c (patch)
treec11398141f13392115000713ab44eb6b35caa646 /src/libutil/addr.h
parent60ef2e36f2264d1d0baf61116324f9bcb11eadfc (diff)
downloadrspamd-0988e1b1b1d0a3a82728df658d834aba199baf4c.tar.gz
rspamd-0988e1b1b1d0a3a82728df658d834aba199baf4c.zip
[Feature] Add protection against open files limit and accepting sockets
Diffstat (limited to 'src/libutil/addr.h')
-rw-r--r--src/libutil/addr.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libutil/addr.h b/src/libutil/addr.h
index bb9fd2573..200543d6f 100644
--- a/src/libutil/addr.h
+++ b/src/libutil/addr.h
@@ -193,10 +193,12 @@ gboolean rspamd_ip_is_valid (const rspamd_inet_addr_t *addr);
/**
* Accept from listening socket filling addr structure
* @param sock listening socket
- * @param addr allocated inet addr structur
+ * @param addr allocated inet addr structure
+ * @param accept_events events for accepting new sockets
* @return
*/
-gint rspamd_accept_from_socket (gint sock, rspamd_inet_addr_t **addr);
+gint rspamd_accept_from_socket (gint sock, rspamd_inet_addr_t **addr,
+ GList *accept_events);
/**
* Parse host[:port[:priority]] line