Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix incorrect maximum number of chunks per packet#3280

Open
Robyt3 wants to merge 1 commit intoteeworlds:masterfrom
Robyt3:Network-Packet-Chunks-Max-Fix
Open

Fix incorrect maximum number of chunks per packet#3280
Robyt3 wants to merge 1 commit intoteeworlds:masterfrom
Robyt3:Network-Packet-Chunks-Max-Fix

Conversation

@Robyt3
Copy link
Contributor

@Robyt3 Robyt3 commented Jul 11, 2025

The maximum number of chunks per packet is limited to 255 due to the value being packed into 1 byte in the chunk header. The incorrect limit caused full packets to be packed with the number of chunks value being 0 due to the value 256 overflowing, which would result in receivers not unpacking any chunks due to the number being 0.

See ddnet/ddnet#10504

The maximum number of chunks per packet is limited to 255 due to the value being packed into 1 byte in the chunk header. The incorrect limit caused full packets to be packed with the number of chunks value being 0 due to the value 256 overflowing, which would result in receivers not unpacking any chunks due to the number being 0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments