Opened 9 years ago
Last modified 8 years ago
#3423 closed defect
Crash after 30 seconds of lag — at Version 1
Reported by: | elexis | Owned by: | |
---|---|---|---|
Priority: | Must Have | Milestone: | |
Component: | Network | Keywords: | |
Cc: | Patch: |
Description (last modified by )
If you host a game and your computer freezes for more than 30 seconds for some reason (for example sunken ship lag r16636, or having 0ad installed on an external harddrive that goes to standby mode), then 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.