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

threadpool: panic if a worker thread cannot be spawned #826

Merged
merged 2 commits into from Jan 5, 2019
Merged

threadpool: panic if a worker thread cannot be spawned #826

merged 2 commits into from Jan 5, 2019

Conversation

ghost
Copy link

@ghost ghost commented Jan 3, 2019

Motivation

It is possible that spawning a worker thread fails due to resource exhaustion on the machine. See #809 for details. In that case, we're logging a warning and continuing execution, but we should make it a harder error instead.

Solution

If thread spawning fails, log an error! and panic.

Closes #809

Copy link
Member

@tobz tobz left a comment

Choose a reason for hiding this comment

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

LGTM.

@tobz tobz merged commit df299ce into tokio-rs:master Jan 5, 2019
@ghost ghost deleted the spawn-error branch January 6, 2019 15:11
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.

None yet

1 participant