What happens during graceful shutdown? #2515
-
Graceful shutdown fails when I keep an open websocket connection (made with tokio_tungstenite's connect_async) in my request handler. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Graceful shutdown will try to signal shutdown intent based on what's available on the protocol:
Notably, it cannot trigger shutdowns in protocols hyper doesn't understand. Connections that have been upgraded are no longer monitored by hyper, and shutdown in those protocols must be handled separately. It also won't force a shutdown. To do that, you'll need to include a timeout after starting to trigger the graceful shutdown. |
Beta Was this translation helpful? Give feedback.
Graceful shutdown will try to signal shutdown intent based on what's available on the protocol:
Notably, it cannot trigger shutdowns in protocols hyper doesn…