Commit 8ac6e3ad authored by Thomas Kolb's avatar Thomas Kolb
Browse files

Drop blocking connections on TCP

Writes to clients are now nonblocking. If a nonblocking write fails for a client, the client is disconnected.
parent 252a0390
Subproject commit 68698de3be438fda96af49d79c60a0b8c9efdd6f
Subproject commit 01bed4031046231c1636991672e3e3d75b258e63
......@@ -78,6 +78,8 @@ bool Game::OnConnectionEstablished(TcpSocket &socket)
initTracker.worldState(*m_field);
socket.Write(initTracker.serialize());
socket.SetWriteBlocking(false);
return true;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment