mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 17:49: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) {
|
if(!error) {
|
||||||
m_connected = true;
|
m_connected = true;
|
||||||
|
|
||||||
|
// disable nagle's algorithm
|
||||||
|
boost::asio::ip::tcp::no_delay option(true);
|
||||||
|
m_socket.set_option(option);
|
||||||
|
|
||||||
if(m_connectCallback)
|
if(m_connectCallback)
|
||||||
g_dispatcher.addEvent(m_connectCallback);
|
g_dispatcher.addEvent(m_connectCallback);
|
||||||
} else
|
} else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user