Opened 9 years ago
Last modified 8 years ago
#3423 closed defect
Crash after 30 seconds of lag — at Initial Version
Reported by: | elexis | Owned by: | |
---|---|---|---|
Priority: | Must Have | Milestone: | |
Component: | Network | Keywords: | |
Cc: | Patch: |
Description
If you host a game and your computer freezes for more than 30 seconds for some reason (like sunken boat lag on a18), the game will end for all players.
This is due to a default timeout value of 30 seconds in enet ( http://enet.bespin.org/ ) and once the local client / host disconnects, it's over.
We should disable it / set it to infinite for the local client / host:
// enet_peer_timeout(event.peer, 0, 0, 10000);
This issue has been reported in ticket:3264#comment:3. We should fix it here, so that we can decide on reasonable client timeout values in that ticket.
Note:
See TracTickets
for help on using tickets.