Skip to content

Commit b2162c9

Browse files
authored
Disable TCP_NODELAY by default (#39)
1 parent 292962e commit b2162c9

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

trantor/net/inner/Acceptor.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ Acceptor::Acceptor(EventLoop *loop,
2828
_sock.setReuseAddr(reUseAddr);
2929
_sock.setReusePort(reUsePort);
3030
_sock.bindAddress(_addr);
31-
_sock.setTcpNoDelay(true);
3231
_acceptChannel.setReadCallback(std::bind(&Acceptor::readCallback, this));
3332
}
3433
Acceptor::~Acceptor()

trantor/net/inner/TcpConnectionImpl.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ TcpConnectionImpl::TcpConnectionImpl(EventLoop *loop,
4747
_ioChannelPtr->setErrorCallback(
4848
std::bind(&TcpConnectionImpl::handleError, this));
4949
_socketPtr->setKeepAlive(true);
50-
_socketPtr->setTcpNoDelay(true);
5150
_name = localAddr.toIpPort() + "--" + peerAddr.toIpPort();
5251
}
5352
TcpConnectionImpl::~TcpConnectionImpl()

0 commit comments

Comments
 (0)