diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-15 11:50:00 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-15 11:50:00 +0000 |
commit | 02fece83f5e4bcf15d882f6bd82edddbb3b8abc0 (patch) | |
tree | 818b52e03e3e9c50f25332e9eed63515df7b802c /src/fuzzy_storage.c | |
parent | ccd96f508baa194d699e2d3af6e336f0fe2e1682 (diff) | |
download | rspamd-02fece83f5e4bcf15d882f6bd82edddbb3b8abc0.tar.gz rspamd-02fece83f5e4bcf15d882f6bd82edddbb3b8abc0.zip |
[Minor] Ensure that socket received is non-blocking
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r-- | src/fuzzy_storage.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |