pypi sse-starlette 3.5.0
v3.5.0

5 hours ago

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_exit is no longer set when sse-starlette detects uvicorn's
    own Server.should_exit (fallback path, e.g. uvicorn "module:app"). Streams
    still close on shutdown. If you read AppStatus.should_exit to detect
    shutdown, use shutdown_event instead.
  • A real SIGTERM/SIGINT still sets AppStatus.should_exit process-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

Don't miss a new sse-starlette release

NewReleases is sending notifications on new releases.