1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-20 23:26:44 +00:00
actix-web/examples/signals
2017-12-30 21:08:12 +01:00
..
src fix examples - disable signal if windows 2017-12-30 21:05:03 +01:00
Cargo.toml add graceful shutdown system 2017-12-28 16:25:47 -08:00
README.md fix readme examples/signal 2017-12-30 21:08:12 +01:00

Signals

This example shows how to handle Unix signals and properly stop http server. This example does not work with Windows.

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