Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a timeout to graceful termination (#846)
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Add a 2-second timeout for graceful server termination in `ControllerServer` and remove unused imports in `admin.rs`. > > - **Behavior**: > - Add `TERMINATE_TIMEOUT_DURATION` constant in `controller/mod.rs` to set a 2-second timeout for graceful server termination. > - Modify `terminate()` in `ControllerServer` to use `tokio::time::timeout` for server shutdown. > - Log a warning if the server does not terminate gracefully within the timeout. > - **Misc**: > - Remove unused import `Stream` and `StreamExt` from `admin.rs`. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=jamsocket%2Fplane&utm_source=github&utm_medium=referral)<sup> for 02566ef. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information