Skip to content

Conversation

@SamB440
Copy link
Contributor

@SamB440 SamB440 commented Apr 4, 2025

This rewrites the BedrockNetworkStackLatencyTranslator to add support for pings sent by the server and pongs received from the client.

One thing I'm not sure about is the shouldExecuteInEventLoop. It's important that ping/pongs keep their order. On Java, keep alive's are async and ping/pongs are sync. But on bedrock, NetworkStackLatency seems to be sync and there is no separate packet for keep alives.

Tested with forward-player-ping: true/false and everything seems to work.

Copy link
Member

@onebeastchris onebeastchris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; however i'll let other people also review this before merging.

@onebeastchris
Copy link
Member

This PR needs to be rebased / merge in master due to conflicting changes :(

@SamB440 SamB440 force-pushed the feat/ping-pong-support branch 2 times, most recently from 5672a24 to 9de1073 Compare April 17, 2025 19:41
@SamB440
Copy link
Contributor Author

SamB440 commented Apr 17, 2025

Should be fixed

@SamB440 SamB440 force-pushed the feat/ping-pong-support branch from 9de1073 to 768890a Compare May 7, 2025 17:50
@SamB440 SamB440 force-pushed the feat/ping-pong-support branch from 768890a to 3002f5b Compare May 11, 2025 13:26
@onebeastchris
Copy link
Member

RaphiMC/ViaBedrock@374781a seems to confirm that these are sync (and should be treated as such on Geysers end). Will merge by tomorrow :)

Konicai
Konicai previously requested changes Jun 6, 2025
@onebeastchris onebeastchris added the Waiting On Response When an issue or PR is waiting on a response from a [specific] person. label Jun 7, 2025
@onebeastchris onebeastchris added PR: Feature When a PR implements a new feature and removed Waiting On Response When an issue or PR is waiting on a response from a [specific] person. labels Aug 13, 2025
@THEMPGUYAlt

This comment has been minimized.

@onebeastchris
Copy link
Member

There's unfortunately a merge conflict now - otherwise happy to merge

@oryxel1 oryxel1 dismissed Konicai’s stale review December 10, 2025 19:10

review already addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Feature When a PR implements a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants