8000 Add graceful shutdown to active client streams by s0l0ist · Pull Request #11 · s0l0ist/ferroid · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add graceful shutdown to active client streams #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 15, 2025
Merged

Conversation

s0l0ist
Copy link
Owner
@s0l0ist s0l0ist commented Jun 15, 2025

This PR adds full support for cooperative, graceful shutdown of the ferroid-tonic-serve process. It ensures that in-flight client streams are allowed to complete before worker tasks are terminated.

On shutdown:

  • New requests are refused immediately
  • Active streams are given a chance to finish (configurable by --shutdown-timeout)
  • Workers are terminated cleanly
  • Timeouts or errors are logged but do not block shutdown completion

@s0l0ist s0l0ist marked this pull request as ready for review June 15, 2025 10:12
@s0l0ist s0l0ist merged commit 4a4da0a into main Jun 15, 2025
3 checks passed
@s0l0ist s0l0ist deleted the nangelou-fix-deps branch June 15, 2025 10:15
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
0