mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
enable tcp_nodelay option
This commit is contained in:
parent
6a17173d08
commit
9c55f18186
@ -149,6 +149,11 @@ void Connection::onConnect(const boost::system::error_code& error)
|
||||
|
||||
if(!error) {
|
||||
m_connected = true;
|
||||
|
||||
// disable nagle's algorithm
|
||||
boost::asio::ip::tcp::no_delay option(true);
|
||||
m_socket.set_option(option);
|
||||
|
||||
if(m_connectCallback)
|
||||
g_dispatcher.addEvent(m_connectCallback);
|
||||
} else
|
||||
|
Loading…
x
Reference in New Issue
Block a user