Skip to content

Fix handling of out-of-order packets during login sequence#389

Open
EinBexiii wants to merge 2 commits intoSandertv:masterfrom
EinBexiii:fix/out-of-order-packets
Open

Fix handling of out-of-order packets during login sequence#389
EinBexiii wants to merge 2 commits intoSandertv:masterfrom
EinBexiii:fix/out-of-order-packets

Conversation

@EinBexiii
Copy link

Packets may arrive out of order due to network conditions. Previously,
packets that arrived before they were expected would be deferred but
never processed if they arrived before the expected packet IDs were
updated.

This adds processDeferredPackets() which checks if any deferred packets
match the currently expected IDs and handles them immediately. It is
called after each expect() during the login sequence.

Fixes connection issues with servers like play.lbsg.net.

Packets may arrive out of order due to network conditions. Previously,
packets that arrived before they were expected would be deferred but
never processed if they arrived before the expected packet IDs were
updated.

This adds processDeferredPackets() which checks if any deferred packets
match the currently expected IDs and handles them immediately. It is
called after each expect() during the login sequence.
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