mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-22 16:09:12 +00:00
Limit RTO to 2x RTT and fix early peer timeout expiration
This commit is contained in:
2
enet
2
enet
Submodule enet updated: 70ce1c3e0b...c20ca391e2
@@ -1127,8 +1127,8 @@ 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
|
// Set the peer timeout to 10 seconds and limit backoff to 2x RTT
|
||||||
enet_peer_timeout(peer, ENET_PEER_TIMEOUT_LIMIT, ENET_PEER_TIMEOUT_MINIMUM, 10000);
|
enet_peer_timeout(peer, 2, 10000, 10000);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ctlSock = connectTcpSocket(&RemoteAddr, RemoteAddrLen,
|
ctlSock = connectTcpSocket(&RemoteAddr, RemoteAddrLen,
|
||||||
|
|||||||
Reference in New Issue
Block a user