Skip to content

Bound hot-reload long-poll and enable threaded dev server#1395

Open
richard-to wants to merge 1 commit into
mainfrom
claude/hotreload-prod-access-a5bfrz
Open

Bound hot-reload long-poll and enable threaded dev server#1395
richard-to wants to merge 1 commit into
mainfrom
claude/hotreload-prod-access-a5bfrz

Conversation

@richard-to

Copy link
Copy Markdown
Collaborator

The /hot-reload debug endpoint blocked a request thread indefinitely
until a code change triggered a reload, and Flask's dev server ran
unthreaded, so a single in-flight poll serialized all other requests.
Cap the poll at a max duration (client already retries) and run the
dev server threaded so one slow/long connection can't starve everyone
else.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01SH7W9VinxHv8yMEwfW1yXX

The /__hot-reload__ debug endpoint blocked a request thread indefinitely
until a code change triggered a reload, and Flask's dev server ran
unthreaded, so a single in-flight poll serialized all other requests.
Cap the poll at a max duration (client already retries) and run the
dev server threaded so one slow/long connection can't starve everyone
else.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SH7W9VinxHv8yMEwfW1yXX
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.

2 participants