aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamd.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-09 13:47:44 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-09 13:47:44 +0100
commit488f72bad4fab719861b4641ff832f60729a5950 (patch)
treeefb6714cb551c7611dffe0f25116cbab20b36a78 /src/rspamd.c
parent4f69d50e5ef648c09b042d9bbca9a1b9106288b2 (diff)
downloadrspamd-488f72bad4fab719861b4641ff832f60729a5950.tar.gz
rspamd-488f72bad4fab719861b4641ff832f60729a5950.zip
[Minor] Add flags to listen socket creation
Diffstat (limited to 'src/rspamd.c')
-rw-r--r--src/rspamd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rspamd.c b/src/rspamd.c
index 5aff3078c..5748fa7ff 100644
--- a/src/rspamd.c
+++ b/src/rspamd.c
@@ -412,7 +412,7 @@ create_listen_socket (GPtrArray *addrs, guint cnt,
*/
if (listen_type & RSPAMD_WORKER_SOCKET_TCP) {
fd = rspamd_inet_address_listen (g_ptr_array_index (addrs, i),
- SOCK_STREAM, TRUE);
+ SOCK_STREAM, RSPAMD_INET_ADDRESS_LISTEN_ASYNC, -1);
if (fd != -1) {
ls = g_malloc0 (sizeof (*ls));
ls->addr = rspamd_inet_address_copy (g_ptr_array_index (addrs, i));
@@ -423,7 +423,7 @@ create_listen_socket (GPtrArray *addrs, guint cnt,
}
if (listen_type & RSPAMD_WORKER_SOCKET_UDP) {
fd = rspamd_inet_address_listen (g_ptr_array_index (addrs, i),
- SOCK_DGRAM, TRUE);
+ SOCK_DGRAM, RSPAMD_INET_ADDRESS_LISTEN_ASYNC, -1);
if (fd != -1) {
ls = g_malloc0 (sizeof (*ls));
ls->addr = rspamd_inet_address_copy (g_ptr_array_index (addrs, i));
@@ -1438,7 +1438,7 @@ main (gint argc, gchar **argv, gchar **env)
}
else {
control_fd = rspamd_inet_address_listen (control_addr, SOCK_STREAM,
- TRUE);
+ RSPAMD_INET_ADDRESS_LISTEN_ASYNC, -1);
if (control_fd == -1) {
msg_err_main ("cannot open control socket at path: %s",
rspamd_main->cfg->control_socket_path);