Always shut down the tokio runtime before exiting zebra #3384
Labels
A-rust
Area: Updates to Rust code
C-security
Category: Security issues
I-crash
Zebra crashes (without a panic)
Scheduling
If #3133 removes all the calls to
app_writer().shutdown()
, then we don't need to do this task until the lightwalletd work.Motivation
After we fix #3133, we might need to shut down the tokio run time before the Zebra abscissa application shuts down. This avoids a potential security issue where the tokio runtime threads are forced to shut down without cleaning up properly.
APIs
https://docs.rs/abscissa_core/0.5.2/abscissa_core/component/trait.Component.html#method.before_shutdown
https://docs.rs/abscissa_core/0.5.2/abscissa_core/application/trait.Application.html#method.shutdown
The text was updated successfully, but these errors were encountered: