Fixed
- A stopped uvicorn server no longer cancels SSE streams of later servers in
the same process (#211, regression since 3.1.1). Typical trigger: test suites
starting a real server per test.
Behaviour change
AppStatus.should_exitis no longer set when sse-starlette detects uvicorn's
ownServer.should_exit(fallback path, e.g.uvicorn "module:app"). Streams
still close on shutdown. If you readAppStatus.should_exitto detect
shutdown, useshutdown_eventinstead.- A real SIGTERM/SIGINT still sets
AppStatus.should_exitprocess-wide; see
README "Testing" if your tests send real signals to an in-process server.
Upgrade note
- If you called
AppStatus.disable_automatic_graceful_drain()only to work
around #211, remove it to get automatic stream draining back.
What's Changed
- fix(shutdown): stop stopped uvicorn servers from cancelling later SSE streams (#211) by @sysid in #212
Full Changelog: v3.4.11...v3.5.0