diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-07-28 15:13:04 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-07-28 15:13:04 +0200 |
commit | b45fec337aff8e04bebaf6e898a499f05ee6b0d6 (patch) | |
tree | c0e86a97203c533e9808a5c81ace8e1ee4717bf1 /src/vtcp_listener.cpp | |
parent | 46b053b8d67ba4826302d53268edccf919e6d785 (diff) |
Tuning of TCP sockets is done at a single place
Instead of being spread throughout the codebase, the tuning
is done in tune_tcp_socket() function.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/vtcp_listener.cpp')
-rw-r--r-- | src/vtcp_listener.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vtcp_listener.cpp b/src/vtcp_listener.cpp index 60fad8c..8fbefb2 100644 --- a/src/vtcp_listener.cpp +++ b/src/vtcp_listener.cpp @@ -30,6 +30,7 @@ #include "session.hpp" #include "stdint.hpp" #include "err.hpp" +#include "ip.hpp" zmq::vtcp_listener_t::vtcp_listener_t (io_thread_t *io_thread_, socket_base_t *socket_, options_t &options_) : @@ -95,6 +96,8 @@ void zmq::vtcp_listener_t::in_event () if (fd == retired_fd) return; + tune_tcp_socket (fd); + // Create the engine object for this connection. tcp_engine_t *engine = new (std::nothrow) tcp_engine_t (fd, options); alloc_assert (engine); |