summaryrefslogtreecommitdiff
path: root/src/tcp_engine.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-07-28 13:19:55 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-07-28 13:19:55 +0200
commit5ac63140b01fed145fa41f613308e134420920ab (patch)
treee51f1dcd4c97ffb720c909f81271751d5776d191 /src/tcp_engine.cpp
parent6e987428d49558a8a7b08795bcc429f720bb3874 (diff)
Implementations of TCP and IPC transports separated
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/tcp_engine.cpp')
-rw-r--r--src/tcp_engine.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/tcp_engine.cpp b/src/tcp_engine.cpp
index 4cb535a..f940b84 100644
--- a/src/tcp_engine.cpp
+++ b/src/tcp_engine.cpp
@@ -99,26 +99,6 @@ zmq::tcp_engine_t::tcp_engine_t (fd_t fd_, const options_t &options_) :
rc = setsockopt (s, SOL_SOCKET, SO_NOSIGPIPE, &set, sizeof (int));
errno_assert (rc == 0);
#endif
-
- // Disable Nagle's algorithm. We are doing data batching on 0MQ level,
- // so using Nagle wouldn't improve throughput in anyway, but it would
- // hurt latency.
- int nodelay = 1;
- rc = setsockopt (s, IPPROTO_TCP, TCP_NODELAY, (char*) &nodelay,
- sizeof (int));
-#ifdef ZMQ_HAVE_WINDOWS
- wsa_assert (rc != SOCKET_ERROR);
-#else
- errno_assert (rc == 0);
-#endif
-
-#ifdef ZMQ_HAVE_OPENVMS
- // Disable delayed acknowledgements as they hurt latency is serious manner.
- int nodelack = 1;
- rc = setsockopt (s, IPPROTO_TCP, TCP_NODELACK, (char*) &nodelack,
- sizeof (int));
- errno_assert (rc != SOCKET_ERROR);
-#endif
}
zmq::tcp_engine_t::~tcp_engine_t ()