Skip to content

fix(caddy): explain and shorten dev hub shutdown - #1473

Merged
dunglas merged 1 commit into
mainfrom
fix/shutdown-without-drain
Dec 1, 2026
Merged

dunglas merged 1 commit into
mainfrom
fix/shutdown-without-drain

Conversation

@dunglas

@dunglas dunglas commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Since #1212, an interrupt without drain_timeout keeps every subscriber connected until its write deadline, up to 10 minutes with the default write_timeout, and the hub logs nothing about it. Stopping a local hub with an open browser tab looks like a hang until a second Ctrl-C.

  • playground now defaults drain_timeout to 1s when it isn't set, so a dev hub exits in about a second.
  • On exit without a drain, the hub logs that open connections close at their write deadline, and how to stop sooner (drain_timeout, or a second interrupt).

The production drain contract from #1212 is unchanged: config reloads still never drain, and hubs without playground keep their connections until their deadlines.

Since the graceful drain landed, an interrupt without drain_timeout keeps every subscriber connected until its write deadline, up to 10 minutes by default, with nothing in the logs. Stopping a local hub with an open browser tab looked like a hang.

The playground now defaults drain_timeout to 1s, and an exit without a drain logs that connections close at their write deadline and how to stop sooner. The production drain contract is unchanged.
@dunglas
dunglas merged commit 5992338 into main Dec 1, 2026
48 checks passed
@dunglas
dunglas deleted the fix/shutdown-without-drain branch December 1, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant