AO-devgroup / Attorney-Online-Client

This is the new client project based on the Qt framework
GNU General Public License v3.0
5 stars 1 forks source link

Server list received from master gets split #6

Closed OmniTroid closed 8 years ago

OmniTroid commented 8 years ago

TCP splits the packet as it is too large. Only half of the masterlist shows up.

oldmud0 commented 8 years ago

That is supposed to be handled by the TCP/IP stack, i.e. under the hood. TCP packet fragmentation should not have to be handled by software. Perhaps it is overrunning the 16k buffer you made.

OmniTroid commented 8 years ago

Fixed using caching.

oldmud0 commented 8 years ago

I had a similar problem making an LCD monitor via the serial port. The solution was to put incomplete packets on an extra buffer which would be placed in front of the read buffer on the next set of reads.