This commit is contained in:
badaix 2016-11-14 12:20:25 +01:00
parent 54e544189a
commit 991c963b7d

View file

@ -354,7 +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
// 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);