async-gamequery-lib icon indicating copy to clipboard operation
async-gamequery-lib copied to clipboard

Remaining Bytes = 0 after reading 1-2-3 packets from 5

Open romanvoloboev opened this issue 2 years ago • 1 comments

When executing ListPlayers on full squad server it returns huge response which divides into 5 packets. Very often library reads only part of this response (for example only 1st packet, or only 1st and 2nd packets, etc), saying that No more bytes to read and finish collecting packets. And as result I have data for 23/100 or 46/100 or even more rare case 70/100 when it reads only 3 or 4 packets of 5..

It looks like server didn't send all data at once to the channel, and this data appears later, but it's to late to handle it.

image 1

romanvoloboev avatar Apr 27 '24 14:04 romanvoloboev

here is example of successfull reading of ListPlayers 100/100 good_packets.txt

romanvoloboev avatar Apr 27 '24 14:04 romanvoloboev