Skip to content

Commit 046b3b3

Browse files
committed
Enable no delay option
1 parent 894da2e commit 046b3b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/TCP/TCPWrapper.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ void TCPWrapper::asyncConnect(boost::asio::ip::tcp::socket& socket, const std::s
5151
boost::system::error_code TCPWrapper::connect(boost::asio::ip::tcp::socket& socket, const std::string& hostname, uint16_t port)
5252
{
5353
boost::system::error_code ec;
54+
socket.set_option(boost::asio::ip::tcp::no_delay(true), ec);
5455
socket.connect(boost::asio::ip::tcp::endpoint(boost::asio::ip::address::from_string(hostname), port), ec);
5556
return ec;
5657
}

0 commit comments

Comments
 (0)