hg c847e3da86
[Netcode] Adjust first packet for compress flag (#2326)
When a packet was over max_raw_size and zlib failed to compress the
first packet chunk then the final output would be 513 bytes which
exceeded m_max_packet_size of 512.

This occured because the first packet chunk used sublen without
adjusting for the new_length + 1 compression flag added in Compress().
When the packet failed to compress then it was already at its max.
After the first packet, chunk sizes are calculated using max_raw_size
which already accounted for the compress flag. (From #979)

This should fix #2325
2022-07-27 08:52:25 -05:00
..
2016-09-25 15:10:34 -07:00
2016-09-25 15:10:34 -07:00
2019-03-10 00:10:47 -08:00
2020-02-01 20:49:04 -08:00
2017-04-09 20:17:48 -07:00
2019-05-17 00:09:38 -07:00