mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
fixed issue #50: ensure that tcp_nodelay is set
This commit is contained in:
parent
b106f76294
commit
f7975d8ace
2 changed files with 2 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ void Servatrice_GameServer::incomingConnection(int socketDescriptor)
|
|||
} else {
|
||||
QTcpSocket *socket = new QTcpSocket;
|
||||
socket->setSocketDescriptor(socketDescriptor);
|
||||
socket->setSocketOption(QAbstractSocket::LowDelayOption, 1);
|
||||
ServerSocketInterface *ssi = new ServerSocketInterface(server, socket);
|
||||
logger->logMessage(QString("incoming connection: %1").arg(socket->peerAddress().toString()), ssi);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue