-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: await PocketIC HTTP gateway shutdown (#2709)
This PR ensures that the PocketIC server awaits the PocketIC HTTP gateway shutdown by shutting down the axum server handle in a drop handler invoked in the methods `ApiState::stop_http_gateway` and `ApiState::stop_all_http_gateways` after setting the `HttpGateway` struct to `None`. In particular, the function `ApiState::stop_all_http_gateways` is awaited in the signal handler of the PocketIC server and thus all PocketIC HTTP gateways are shut down gracefully before the PocketIC main axum server is shut down and the main function exits (terminating the PocketIC server process).
- Loading branch information
Showing
1 changed file
with
26 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters