0.50.0
Version 0.50.0
Changed 7
- Memoize trusted host checks to avoid re-parsing the client IP per request
- Cache the asgi scope sub-dict per connection
- Build a fresh asgi scope dict per request
- Replace click.style with an internal ANSI style helper
- Avoid copying single-frame WebSocket payloads in websockets-sansio
- Exit with a dedicated code on startup failure and stop the supervisor when a worker can't boot
- Skip the eager app import in the parent when spawning workers
Deprecated 1
- Deprecate the legacy websockets implementation and default auto to websockets-sansio
What's Changed
- Memoize trusted host checks to avoid re-parsing the client IP per request by @Kludex in https://github.com/Kludex/uvicorn/pull/2970
- Cache the
asgiscope sub-dict per connection by @Kludex in https://github.com/Kludex/uvicorn/pull/2976 - Build a fresh
asgiscope dict per request by @Kludex in https://github.com/Kludex/uvicorn/pull/2977 - Replace click.style with an internal ANSI style helper by @Kludex in https://github.com/Kludex/uvicorn/pull/2981
- Avoid copying single-frame WebSocket payloads in websockets-sansio by @Kludex in https://github.com/Kludex/uvicorn/pull/2983
- Deprecate the legacy websockets implementation and default
autoto websockets-sansio by @Kludex in https://github.com/Kludex/uvicorn/pull/2985 - Exit with a dedicated code on startup failure and stop the supervisor when a worker can't boot by @Kludex in https://github.com/Kludex/uvicorn/pull/3001
- Skip the eager app import in the parent when spawning workers by @Kludex in https://github.com/Kludex/uvicorn/pull/3012
Full Changelog: https://github.com/Kludex/uvicorn/compare/0.49.0...0.50.0