uvicorn icon indicating copy to clipboard operation
uvicorn copied to clipboard

fix: allow Ctrl+C to interrupt hanging lifespan

Open suiseriff opened this issue 2 months ago • 0 comments

Summary

This pull request fixes the issue where a hanging lifetime operation would cause the application to become unresponsive to Ctrl+C (SIGINT). Previously, if the startup and shutdown of the lifetime was hanging (for example, due to an infinite loop, deadlock, or a long-running operation), users would need to forcibly terminate the process using kill -9.

Fixes #2751

Checklist

  • [x] I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • [ ] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • [ ] I've updated the documentation accordingly.

suiseriff avatar Nov 08 '25 19:11 suiseriff