From 50e6e22da4e5c9e5fe3bc8cd72fe0df0dd7d296d Mon Sep 17 00:00:00 2001 From: Melvin Strobl Date: Fri, 16 Oct 2026 20:46:42 +0200 Subject: [PATCH] Dev: a reload waits at most five seconds for open connections Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_0138N7k5PT4dcR1iEqXaaQ9k --- docker/compose.dev.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docker/compose.dev.yml b/docker/compose.dev.yml index a45d111..55aecc0 100644 --- a/docker/compose.dev.yml +++ b/docker/compose.dev.yml @@ -95,9 +95,11 @@ services: context: .. dockerfile: backend/Dockerfile # uvicorn itself, because `fastapi dev` cannot turn per-message deflate - # off, which `fluksio serve` does for the media frames. Watching the worker - # too makes a worker edit restart the engine, which respawns the local - # worker pool with the new code. + # off, which `fluksio serve` does for the media frames. A reload gives + # open connections five seconds: a device's socket that never finishes + # closing held the old process, and with it the reload, for good. Watching + # the worker too makes a worker edit restart the engine, which respawns the + # local worker pool with the new code. command: - uvicorn - fluksio.main:app @@ -108,6 +110,8 @@ services: - "8000" - --ws-per-message-deflate - "false" + - --timeout-graceful-shutdown + - "5" - --reload-dir - /app/backend - --reload-dir