pmmp / RakLib

RakNet server implementation written in PHP
Other
86 stars 38 forks source link

Delay NACK sending to allow misordered packets to arrive #150

Open dktapps opened 2 years ago

dktapps commented 2 years ago

Currently we send out NACKs at the same time as ACKs, which might not be beneficial for packets that arrived in the wrong order. It might make sense to allow them more time to arrive before sending a NACK.

The tradeoff here is that taking longer to NACK a packet which is actually lost will cause it to take longer to get resent, potentially causing brief processing latency spikes (since MCPE always uses reliable-ordered).