From eb9c88117480a1cf77219bfd6d5c519039a28659 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 6 Mar 2016 15:24:36 -0800 Subject: [PATCH] Set peer timeout to 10 seconds rather than the default 30 seconds --- limelight-common/ControlStream.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/limelight-common/ControlStream.c b/limelight-common/ControlStream.c index 952a9ce..12723a1 100644 --- a/limelight-common/ControlStream.c +++ b/limelight-common/ControlStream.c @@ -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,