summaryrefslogtreecommitdiffstats
path: root/src/libserver/worker_util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-17 23:15:51 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-17 23:15:51 +0100
commit8262bfa73f9067ebb7c6d0e2ea7851b5b2496064 (patch)
tree57cf33af80fc8ccec986660e9636afc271f22d12 /src/libserver/worker_util.c
parent67a9b24adc7336370776644cc82f8393601229b1 (diff)
downloadrspamd-8262bfa73f9067ebb7c6d0e2ea7851b5b2496064.tar.gz
rspamd-8262bfa73f9067ebb7c6d0e2ea7851b5b2496064.zip
[Minor] Another try to fix reuseport damage
Diffstat (limited to 'src/libserver/worker_util.c')
-rw-r--r--src/libserver/worker_util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libserver/worker_util.c b/src/libserver/worker_util.c
index 2d40d057c..14394726d 100644
--- a/src/libserver/worker_util.c
+++ b/src/libserver/worker_util.c
@@ -985,6 +985,8 @@ rspamd_maybe_reuseport_socket (struct rspamd_worker_listen_socket *ls)
nfd = ls->fd;
#endif
+#if 0
+ /* This needed merely if we have reuseport for tcp, but for now it is disabled */
/* This means that we have an fd with no listening enabled */
if (nfd != -1) {
if (ls->type == RSPAMD_WORKER_SOCKET_TCP) {
@@ -993,6 +995,7 @@ rspamd_maybe_reuseport_socket (struct rspamd_worker_listen_socket *ls)
}
}
}
+#endif
return true;
}
@@ -1070,6 +1073,8 @@ rspamd_handle_child_fork (struct rspamd_worker *wrk,
strerror (errno));
}
+ ls->fd = -1;
+
cur = g_list_next (cur);
}
}