Skip to content

Document graceful server shutdown - #1760

Open
GruffElixir wants to merge 1 commit into
python-websockets:mainfrom
GruffElixir:docs/faq-graceful-server-shutdown
Open

Document graceful server shutdown#1760
GruffElixir wants to merge 1 commit into
python-websockets:mainfrom
GruffElixir:docs/faq-graceful-server-shutdown

Conversation

@GruffElixir

Copy link
Copy Markdown

Closes #1756.

The FAQ now documents how to stop both asyncio and threading servers while keeping existing connections open. The threading example uses Server.shutdown(close_connections=False) and waits for the server thread to finish.

Validation: sphinx-build -W -b dummy . _build/dummy from docs/.

Copilot AI lite review requested due to automatic review settings September 12, 2026 13:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

Consider adding close_connections argument to serve

2 participants