Skip to content

Resolve issue where disconnect messages can get hidden when another packet is being sent#906

Merged
onebeastchris merged 1 commit into
GeyserMC:masterfrom
onebeastchris:disconnect-messages-race-condition
Jul 25, 2025
Merged

Resolve issue where disconnect messages can get hidden when another packet is being sent#906
onebeastchris merged 1 commit into
GeyserMC:masterfrom
onebeastchris:disconnect-messages-race-condition

Conversation

@onebeastchris

@onebeastchris onebeastchris commented Jul 24, 2025

Copy link
Copy Markdown
Member

should resolve GeyserMC/Geyser#5375.

Was able to replicate locally, and saw that the FIRE_EXCEPTION_ON_FAILURE listener was the one throwing the exception that occasionally led to the session being disconnected before the actual disconnection message being received:
image
Meanwhile, Mojang's impl sets a void promise instead (unless a runnable is present!) - which, to my understanding, does not care whether the packet was actually sent (?)

image

This fix resolved issues with disconnection methods on my end; still opening a PR as netty is not my strong-suit 😄

@onebeastchris onebeastchris merged commit 711b5e7 into GeyserMC:master Jul 25, 2025
1 check passed
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.

Player joining a velocity server with no available routes throws an error in the console instead of failing to connect gracefully

1 participant