Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: registerRTT would break successful queries #610

Merged
merged 5 commits into from
Aug 19, 2024

Conversation

CosminPerRam
Copy link
Member

@CosminPerRam CosminPerRam commented Aug 16, 2024

@mgrimace encountered issues by using the Homepage project and adding a widget which uses minecraft, reported here.

After some debugging we have cloncluded that the bedrock query runs (from logs, as the target server is bedrock edition) and other fails, but the query still fails.

Commit 9bd3caa is the only a contester as why this happens, OP verified this by making the query with the version before this change (5.0.0-beta.2) which worked. edit: it was not

Edit:
Commit 6b85c6b is also a possiblity (late edit) caused successful queries to fail if registerRtt would take too long.

This PR pretty much reverses that commit.

@CosminPerRam
Copy link
Member Author

A server where I have observed this behaviour: play.pokebedrock.com:19132

@CosminPerRam CosminPerRam changed the title fix: minecraft protocol not catching exceptions fix: registerRTT would break successful queries Aug 19, 2024
@CosminPerRam CosminPerRam linked an issue Aug 19, 2024 that may be closed by this pull request
@CosminPerRam
Copy link
Member Author

@cetteup made a great explaination and summary of this in #611

@CosminPerRam CosminPerRam force-pushed the fix/minecraft_promises branch from e880bb0 to 1629a52 Compare August 19, 2024 15:50
@CosminPerRam CosminPerRam merged commit 60c3990 into master Aug 19, 2024
7 checks 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.

bug: Timeouts not triggering for TCP queries
1 participant