Browse Source

[Minor] Ensure that socket received is non-blocking

tags/1.2.0
Vsevolod Stakhov 8 years ago
parent
commit
02fece83f5
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/fuzzy_storage.c

+ 3
- 0
src/fuzzy_storage.c View File

@@ -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;

Loading…
Cancel
Save