Skip to content

Adjust large packet handler to run when above protocol limit#10448

Closed
Spottedleaf wants to merge 2 commits into
masterfrom
fix/large-packets
Closed

Adjust large packet handler to run when above protocol limit#10448
Spottedleaf wants to merge 2 commits into
masterfrom
fix/large-packets

Conversation

@Spottedleaf
Copy link
Copy Markdown
Member

Previously, PacketEncoder assumed that a packet value larger
than the protocol limit would be compressed to become smaller
than the protocol limit. However, not all packets will compress
below the protocol limit.

To try to better handle this, we will run the large packet handler
when the packet size is above the protocol limit when the packet
has a large packet fallback to avoid a case where the packet
does not compress below protocol limit (at which point, it is
too late to run the large packet handler).

Previously, PacketEncoder assumed that a packet value larger
than the protocol limit would be compressed to become smaller
than the protocol limit. However, not all packets will compress
below the protocol limit.

To try to better handle this, we will run the large packet handler
when the packet size is above the protocol limit when the packet
has a large packet fallback to avoid a case where the packet
does not compress below protocol limit (at which point, it is
too late to run the large packet handler).
@Spottedleaf Spottedleaf requested a review from a team as a code owner April 23, 2024 09:13
@Spottedleaf
Copy link
Copy Markdown
Member Author

f4c7d37...7ac24a1

@MiniDigger MiniDigger deleted the fix/large-packets branch April 24, 2024 07:52
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.

3 participants