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

Check for task completion before sleeping #431

Merged
merged 2 commits into from
Jul 29, 2024

Conversation

SirYwell
Copy link
Contributor

As noted in the comment, if the timeout tasks only runs after the command was executed already, we'd run into a 5 second sleep before checking if the command completed already. This normally isn't a problem but takes up 5 seconds of a thread that can't do anything else in that time.

In the case of PaperMC/Paper#11171 there only was one thread available, making the problem obvious pretty fast.

@lucko lucko merged commit 7076811 into lucko:master Jul 29, 2024
3 checks passed
@lucko
Copy link
Owner

lucko commented Jul 29, 2024

thanks :)

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.

2 participants