mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-17 22:31:21 +00:00
Set peer timeout to 10 seconds rather than the default 30 seconds
This commit is contained in:
@@ -602,6 +602,9 @@ int startControlStream(void) {
|
|||||||
|
|
||||||
// Ensure the connect verify ACK is sent immediately
|
// Ensure the connect verify ACK is sent immediately
|
||||||
enet_host_flush(client);
|
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 {
|
else {
|
||||||
ctlSock = connectTcpSocket(&RemoteAddr, RemoteAddrLen,
|
ctlSock = connectTcpSocket(&RemoteAddr, RemoteAddrLen,
|
||||||
|
|||||||
Reference in New Issue
Block a user