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

Useful packet drops when sending packets more than NetConstants.NumSequenceNumbers #62

Closed RevenantX closed 8 years ago

RevenantX commented 8 years ago

I found that NetReliableUnorderedReceiver drops usefull packets but send acks when sending too much packets (more than NetConstants.NumSequenceNumbers).
Therefore packets will lost forever.

RevenantX commented 8 years ago

when channel type - ReliableOrdered - this bug happens too.

forestrf commented 8 years ago

Why closed?

RevenantX commented 8 years ago

After long analyze of code and rewriting some parts for better stability (increase Sequence numbers to 32768) i not found anything drops in code. Only two possible leaks in NetReliableOrderedReceiver and NetReliableUnorderedReceiver. in this line if (relate > m_windowSize) i think when relate == m_windowSize - this too very early message that can rewrite m_earlyReceived In my situation i think server can block flooding.