From 02fece83f5e4bcf15d882f6bd82edddbb3b8abc0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 15 Mar 2016 11:50:00 +0000 Subject: [PATCH] [Minor] Ensure that socket received is non-blocking --- src/fuzzy_storage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index e4679afe5..c275f6613 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -1349,6 +1349,9 @@ fuzzy_peer_rep (struct rspamd_worker *worker, msg_err ("cannot receive peer fd from the main process"); exit (EXIT_FAILURE); } + else { + rspamd_socket_nonblocking (rep_fd); + } /* Start listening */ cur = worker->cf->listen_socks; -- 2.39.5