Skip to content

Failing to spawn an arbiter thread should not panic creator thread #703

@Sytten

Description

@Sytten

We have had reports of some users running out of file handle, causing tokio to panic the new thread which in turns triggered this unwrap (https://github.com/actix/actix-net/blob/master/actix-rt/src/arbiter.rs#L153) and killed the caller thread (main in my case).
I think it would be better to offer a safe API (we can keep backward compatibility with an unwrap).

Metadata

Metadata

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions