Shutdown Timeout

Shutdown Timeout

Sets the timeout for graceful shutdown of the server. Itsi will stop accepting new connections immediately after receiving a shutdown signal. Existing connections will be allowed to complete their requests within the specified timeout. Any connections that do not complete within the timeout will be forcefully closed.

Default

Itsi.rb
shutdown_timeout 5.0  # 5 seconds

Example

Itsi.rb
shutdown_timeout 20.0  # 20 seconds