lidgren / lidgren-network-gen3

Lidgren Network Library
https://groups.google.com/forum/#!forum/lidgren-network-gen3
MIT License
1.19k stars 331 forks source link

Fix random timed outs #82

Closed forestrf closed 8 years ago

forestrf commented 8 years ago

This aims to fix the problem described here: https://github.com/lidgren/lidgren-network-gen3/issues/81 a peer can disconnect from other peer randomly by being timed out, even when there is traffic being transmited between them in that moment. To solve it, the countdown to timeout is reset when traffic from the other peer comes through the method ReceivedMessage