1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-24 07:53:00 +01:00
actix-extras/examples/signals
2018-01-05 13:30:21 -08:00
..
src use explicit actix:: mod 2018-01-03 19:11:40 -08:00
Cargo.toml upgrade to actix 0.4 2018-01-05 13:30:21 -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