mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 07:53:00 +01:00
.. | ||
src | ||
Cargo.toml | ||
README.md |
Signals
This example shows how to handle unix signals and properly stop http server
Usage
cd actix-web/examples/signal
cargo run (or ``cargo watch -x run``)
# Started http server: 127.0.0.1:8080
# CTRL+C
# INFO:actix_web::server: SIGINT received, exiting
# INFO:actix_web::worker: Shutting down http worker, 0 connections
# INFO:actix_web::worker: Shutting down http worker, 0 connections
# INFO:actix_web::worker: Shutting down http worker, 0 connections
# INFO:actix_web::worker: Shutting down http worker, 0 connections