From f34f71bbd5b9b00b295aa6438dd251845547225c Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Fri, 13 Apr 2012 06:32:24 +0200 Subject: Set options on new sockets in systematic manner This patch consolidates the up-to-now scattered code that sets different options on newly created sockets. There are open_socket and open_tcp_socket functions that do the tuning automatically. In case the socket is not created but got from elsewhere (such as accept() call) there are tune_socket and tune_tcp_socket functions that will do the tuning. Signed-off-by: Martin Sustrik --- src/ipc_listener.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ipc_listener.cpp') diff --git a/src/ipc_listener.cpp b/src/ipc_listener.cpp index 743ca86..43f75c1 100644 --- a/src/ipc_listener.cpp +++ b/src/ipc_listener.cpp @@ -162,6 +162,7 @@ xs::fd_t xs::ipc_listener_t::accept () errno == ENFILE); return retired_fd; } + tune_socket (sock); return sock; } -- cgit v1.2.3