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

query timeout #16

Open
mrcbax opened this issue Aug 6, 2022 · 0 comments
Open

query timeout #16

mrcbax opened this issue Aug 6, 2022 · 0 comments

Comments

@mrcbax
Copy link

mrcbax commented Aug 6, 2022

I have a use case where I have to ping a lot of servers that may or may not be a MC server. Some of these servers constantly respond with junk.

Your current implementation blocks on the network call, but you have timeouts handled per packet.

Instead of awaiting on the network call, you should use a tokio timer to preempt the network call if it takes longer than the timeout.

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

No branches or pull requests

1 participant