leave no_delay option default

This commit is contained in:
badaix 2016-11-10 09:14:13 +01:00
parent 60ed5b46d4
commit 756dd428f0
6 changed files with 7 additions and 10 deletions

View file

@ -354,10 +354,7 @@ void StreamServer::handleAccept(socket_ptr socket)
setsockopt(socket->native_handle(), SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv));
/// experimental: turn on tcp::no_delay
// asio::ip::tcp::no_delay option;
// socket->get_option(option);
// logE << "no_delay: " << option.value() << "\n";
socket->set_option(tcp::no_delay(true));
// socket->set_option(tcp::no_delay(true));
logS(kLogNotice) << "StreamServer::NewConnection: " << socket->remote_endpoint().address().to_string() << endl;
shared_ptr<StreamSession> session = make_shared<StreamSession>(this, socket);