Set peer timeout to 10 seconds rather than the default 30 seconds

This commit is contained in:
Cameron Gutman
2016-03-06 15:24:36 -08:00
parent c42cae333d
commit eb9c881174

View File

@@ -602,6 +602,9 @@ int startControlStream(void) {
// Ensure the connect verify ACK is sent immediately
enet_host_flush(client);
// Set the max peer timeout to 10 seconds
enet_peer_timeout(peer, ENET_PEER_TIMEOUT_LIMIT, ENET_PEER_TIMEOUT_MINIMUM, 10000);
}
else {
ctlSock = connectTcpSocket(&RemoteAddr, RemoteAddrLen,