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_connecter.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_connecter.cpp')
-rw-r--r-- | src/vtcp_connecter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vtcp_connecter.cpp b/src/vtcp_connecter.cpp index 3fedd6d..842aa3a 100644 --- a/src/vtcp_connecter.cpp +++ b/src/vtcp_connecter.cpp @@ -30,8 +30,8 @@ #include "platform.hpp" #include "random.hpp" #include "likely.hpp" -#include "ip.hpp" #include "err.hpp" +#include "ip.hpp" #if defined ZMQ_HAVE_WINDOWS #include "windows.hpp" @@ -220,6 +220,8 @@ zmq::fd_t zmq::vtcp_connecter_t::connect () return retired_fd; } + tune_tcp_socket (s); + fd_t result = s; s = retired_fd; return result; |