I'm using actix-rt 1.0.0 through actix 0.9.0 and observing that system does not stop on panic.
It seems like task panics get caught by tokio runtime 0.2.6.
Relevant tokio issue: tokio-rs/tokio#2002
It also seems like actix-rt 0.2 always stopped on panic due to tokio 0.1 not catching.
My current workaround is to set a panic hook that sends a stop signal to current system, so another question: is it possible to make System::with_current do nothing if current system is not set? System::current() and System::with_current require the caller to guarantee it's set.
I'm using
actix-rt 1.0.0throughactix 0.9.0and observing that system does not stop on panic.It seems like task panics get caught by tokio runtime
0.2.6.Relevant tokio issue: tokio-rs/tokio#2002
It also seems like
actix-rt 0.2always stopped on panic due totokio 0.1not catching.My current workaround is to set a panic hook that sends a stop signal to current system, so another question: is it possible to make
System::with_currentdo nothing if current system is not set?System::current()andSystem::with_currentrequire the caller to guarantee it's set.