A PRUDP server may send multiple packets on a single UDP packet, so read the UDP payload recursively in search of multiple PRUDP packets.
The recursive search has been applied only to PRUDPv1, since we always have the packet-specific data size and the payload size. In PRUDPv0, the size isn't always present, and it would be hard to make this check inside packetvX.js.
There hasn't been a case of this issue on PRUDPv0 anyway, and hopefully we won't find any.
A PRUDP server may send multiple packets on a single UDP packet, so read the UDP payload recursively in search of multiple PRUDP packets.
The recursive search has been applied only to PRUDPv1, since we always have the packet-specific data size and the payload size. In PRUDPv0, the size isn't always present, and it would be hard to make this check inside
packetvX.js
.There hasn't been a case of this issue on PRUDPv0 anyway, and hopefully we won't find any.