Skip to content

Update dependency uvicorn to ^0.55.0 - #20

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/uvicorn-0.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/uvicorn-0.x

Conversation

@renovate

@renovate renovate Bot commented Sep 20, 2025 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
uvicorn (changelog) ^0.35.0 → ^0.55.0 age confidence

Release Notes

Kludex/uvicorn (uvicorn)

v0.55.0: Version 0.55.0

Compare Source

This project needs your help! Let's make this project sustainable together

🐍 Python 3.15 in, Python 3.10 out

uvicorn 0.55.0 supports Python 3.15 and drops Python 3.10. It also removes a 40 ms delay on keep-alive requests with --workers or --reload on the asyncio loop, and fixes several HTTP and WebSocket edge cases.

uv add uvicorn==0.55.0
  • Python 3.10 is no longer supported (#​3152). The minimum version is now Python 3.11.
  • Python 3.15 is supported (#​3198). Python 3.15 and the free-threaded 3.15t build are tested in CI. 3.15t is not tested on Windows yet.
  • The version now comes from the Git tag (#​3261). This only matters if you build uvicorn yourself. The build needs uv-dynamic-versioning, and a build from a GitHub source tarball gets version 0.0.0. Build from the sdist on PyPI, or set UV_DYNAMIC_VERSIONING_BYPASS to the version.

⚡ Faster keep-alive requests and startup

  • Keep-alive requests no longer wait about 40 ms with --workers or --reload on the asyncio loop (#​3199). The listening socket is now created with IPPROTO_TCP, so asyncio enables TCP_NODELAY on accepted connections. With 2 workers on Linux, the keep-alive p50 went from 41.01 ms to 0.14 ms. uvloop and zuvloop were not affected.
  • Startup is fast when reload patterns match many directories (#​3184). A pattern such as --reload-exclude '.venv/**/*' could take minutes to resolve. With 2,000 matching directories, resolving the patterns went from 120 s to 0.39 s.

🔌 WebSocket handshakes that fail are closed cleanly

  • A handshake request that websockets cannot parse closes the connection (#​3236). With websockets-sansio, a request such as one with a header line over 8 KiB got no response and the connection stayed open. The client now gets a 414 or 431 from websockets 17 or later, or a 400 otherwise, and the connection is closed.
  • Denial responses behave the same on websockets-sansio and wsproto (#​3138). Rejecting a connection through the websocket.http.response extension no longer logs ASGI callable returned without completing handshake. on websockets-sansio. A server shutdown while a denial body is still streaming no longer raises LocalProtocolError on wsproto. A client that disconnects during a denial response is reported with code 1006 on both.
  • Connection teardown reaches the WebSocket protocol when the upgrade request fails (#​3194). The transport is handed to the WebSocket protocol before it processes the upgrade request.

🧹 Stricter and more accurate request handling

  • HTTP/2 requests without a body no longer hang (#​3265). With --http zttp --http2, an application that called receive() before responding never got an answer when the client ended the stream on the HEADERS frame, as curl does.
  • Access logs show the request target as the client sent it (#​3195). This is a behavior change. GET /one%2Ftwo was logged as /one/two, and GET /%41 as /A. The access log now uses raw_path.
  • Non-ASCII request targets are rejected on the zttp protocols (#​3197). They used to raise UnicodeDecodeError. HTTP/1.1 now answers 400 Bad Request, and HTTP/2 resets only the offending stream.
  • --http httptools strips trailing whitespace from request header values (#​3214). X-Test: hello reached the application as b"hello ". h11 and zttp already stripped it.
  • --header without a colon is a usage error (#​3200). --header X-Foo used to crash with a ValueError while loading the config.
  • A negative --limit-max-requests-jitter is rejected by the CLI (#​3092). Uvicorn used to start and then raise a ValueError from inside the server loop.

Full changelog: 0.54.0...0.55.0

v0.54.0

Compare Source

HTTP/2 support remains experimental. Install zttp>=0.0.34 and enable it with --http zttp --http2.

Added
  • Add HTTP/2 response trailers through the ASGI http.response.trailers extension. Clients must send TE: trailers to receive them (#​3146)
  • Add HTTP/2 103 Early Hints through the ASGI http.response.early_hint extension (#​3137)

v0.53.0

Compare Source

This release adds experimental HTTP/2 support through zttp. Enable it with --http zttp --http2.
Upgrade-based h2c and WebSockets over HTTP/2 are not supported.

Added
Fixed
  • Handle comma-separated, case-insensitive Connection: close tokens across HTTP implementations (#​3103)
  • Trust IPv6 loopback in the default FORWARDED_ALLOW_IPS value (#​3119)
  • Cancel the HTTP keep-alive timer when upgrading to WebSocket (#​3107)

v0.52.4

Compare Source

Fixed
  • Remove duplicate Date headers from accepted WebSocket handshakes with websockets-sansio (#​3078)

v0.52.3

Compare Source

Changed
  • Update zttp to 0.0.24 and use its combined receive path, improving HTTP/1.1 request parsing performance (#​3067)

v0.52.2

Compare Source

Fixed
  • Update zttp to 0.0.22, fixing bodyless request receives and improving HTTP/1 request parsing performance (#​3063)

v0.52.1

Compare Source

Fixed
  • Complete the closing handshake on server-initiated WebSocket closes in the websockets-sansio and wsproto implementations, waiting for the client's close reply with a 10 second timeout instead of resetting the connection (#​3053)
  • Add missing write flow control to the websockets-sansio implementation, preventing data truncation on server-initiated closes with large in-flight payloads (#​3048)
  • Handle connection loss while a WebSocket write is waiting on backpressure (#​3050)
  • Remove duplicate Content-Type and Content-Length headers from WebSocket denial responses on the websockets-sansio implementation, and deliver non-UTF-8 denial bodies intact (#​3041)

v0.52.0

Compare Source

This release adds an experimental HTTP/1.1 implementation backed by zttp, a sans-IO HTTP parser I've been developing on the side: a core written in Zig, with bindings to Python. It has been running under a fuzzer for some weeks now, and has been through multiple rounds of security auditing.

It is still experimental, so don't put it in front of production traffic yet. Try it with --http zttp, and please send any feedback to the issue tracker.

Added
  • Add an experimental zttp HTTP/1.1 implementation, selectable with --http zttp (#​2979)
Fixed
  • Keep non-ASCII WebSocket request headers intact with websockets 17.0, which encodes them with ISO-8859-1 (#​3036)

v0.51.0

Compare Source

Added
  • Restart workers one at a time on SIGHUP, bringing each replacement up before retiring the old worker, so reloads no longer drop requests (#​3025)
Removed
  • Remove colorama from the standard extra (#​3027)

v0.50.2

Compare Source

Fixed
  • Require websockets>=13.0, which the default websockets-sansio implementation needs (#​3021)

v0.50.1

Compare Source

Fixed
  • Split comma-separated Sec-WebSocket-Protocol values in the websockets-sansio implementation (#​3019)

v0.50.0

Compare Source

If you use WebSockets, note that --ws auto now picks the websockets-sansio implementation. You shouldn't need it, but you can pin --ws websockets to get the deprecated legacy one back.

Changed
  • Exit with the dedicated code 3 on any startup failure: app loading, socket bind and lifespan startup errors previously exited with a mix of 0, 1 and 3 (#​3001)
  • Stop the multiprocess supervisor when a worker exits with code 3 instead of restarting it forever (#​3001)
  • Default --ws auto to websockets-sansio when websockets is installed (#​2985)
  • Skip the eager app import in the parent process with --reload or --workers, fixing a memory regression introduced in 0.47.0 (#​3012)
  • Build a fresh asgi scope dict per request (#​2977)
  • Cache the asgi scope sub-dict per connection (#​2976)
  • Avoid copying single-frame WebSocket payloads in websockets-sansio (#​2983)
  • Memoize trusted host checks in ProxyHeadersMiddleware (#​2970)
  • Replace click.style with an internal ANSI style helper (#​2981)
Deprecated
  • Deprecate the legacy websockets implementation; use websockets-sansio or wsproto instead (#​2985)

v0.49.0

Compare Source

Changed
  • Bump httptools minimum version to 0.8.0 (#​2962)
  • Consume duplicate forwarding headers in ProxyHeadersMiddleware (reverses the 0.48.0 behavior of ignoring them) (#​2971)

v0.48.0

Compare Source

Changed
  • Default ssl_ciphers to None and use OpenSSL defaults (#​2940)
Fixed
  • Ignore duplicate forwarding headers in ProxyHeadersMiddleware (#​2944)

v0.47.0

Compare Source

Added
  • Add ssl_context_factory for custom SSLContext configuration (#​2920)
Changed
  • Eagerly import the ASGI app in the parent process (#​2919)
Fixed
  • Treat fd=0 as a valid file descriptor with reload/workers (#​2927)

v0.46.0: Version 0.46.0

Compare Source

What's Changed

Full Changelog: Kludex/uvicorn@0.45.0...0.46.0

v0.45.0: Version 0.45.0

Compare Source

What's Changed

New Contributors

Full Changelog: Kludex/uvicorn@0.44.0...0.45.0

v0.44.0: Version 0.44.0

Compare Source

What's Changed

Full Changelog: Kludex/uvicorn@0.43.0...0.44.0

v0.43.0: Version 0.43.0

Compare Source

Changed

  • Emit http.disconnect ASGI receive() event on server shutting down for streaming responses (#​2829)
  • Use native context parameter for create_task on Python 3.11+ (#​2859)
  • Drop cast in ASGI types (#​2875)

Full Changelog: Kludex/uvicorn@0.42.0...0.43.0

v0.42.0: Version 0.42.0

Compare Source

Changed

  • Use bytearray for request body accumulation to avoid O(n^2) allocation on fragmented bodies (#​2845)

Fixed

  • Escape brackets and backslash in httptools HEADER_RE regex (#​2824)
  • Fix multiple issues in websockets sans-io implementation (#​2825)

New Contributors


Full Changelog: Kludex/uvicorn@0.41.0...0.42.0

v0.41.0: Version 0.41.0

Compare Source

Added

  • Add --limit-max-requests-jitter to stagger worker restarts (#​2707)
  • Add socket path to scope["server"] (#​2561)

Changed

  • Rename LifespanOn.error_occured to error_occurred (#​2776)

Fixed

  • Ignore permission denied errors in watchfiles reloader (#​2817)
  • Ensure lifespan shutdown runs when should_exit is set during startup (#​2812)
  • Reduce the log level of 'request limit exceeded' messages (#​2788)

New Contributors


Full Changelog: Kludex/uvicorn@0.40.0...0.41.0

v0.40.0: Version 0.40.0

Compare Source

What's Changed

Full Changelog: Kludex/uvicorn@0.39.0...0.40.0

v0.39.0: Version 0.39.0

Compare Source

What's Changed

New Contributors

Full Changelog: Kludex/uvicorn@0.38.0...0.39.0

v0.38.0: Version 0.38.0

Compare Source

What's Changed


New Contributors

Full Changelog: Kludex/uvicorn@0.37.0...0.38.0

v0.37.0: Version 0.37.0

Compare Source

What's Changed

New Contributors

Full Changelog: Kludex/uvicorn@0.36.1...0.37.0

v0.36.1: Version 0.36.1

Compare Source

What's Changed

  • Raise an exception when calling removed Config.setup_event_loop() by @​Kludex in #​2709

Full Changelog: Kludex/uvicorn@0.36.0...0.36.1

v0.36.0: Version 0.36.0

Compare Source

Added


New Contributors

Full Changelog: Kludex/uvicorn@0.35.0...0.36.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch from cfedd37 to 0f60752 Compare September 23, 2025 13:00
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.36.0 Update dependency uvicorn to ^0.37.0 Sep 23, 2025
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch from 0f60752 to db952e2 Compare September 23, 2025 17:56
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch from db952e2 to 8794764 Compare October 18, 2025 14:10
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.37.0 Update dependency uvicorn to ^0.38.0 Oct 18, 2025
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.38.0 Update dependency uvicorn to ^0.39.0 Dec 21, 2025
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch 2 times, most recently from a679197 to 9130403 Compare December 21, 2025 16:46
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.39.0 Update dependency uvicorn to ^0.40.0 Dec 21, 2025
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.40.0 Update dependency uvicorn to ^0.41.0 Feb 17, 2026
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch from 9130403 to 2230e8e Compare February 17, 2026 01:55
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.41.0 Update dependency uvicorn to ^0.42.0 Mar 16, 2026
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch from 2230e8e to 0a81908 Compare March 16, 2026 10:02
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.42.0 Update dependency uvicorn to ^0.43.0 Apr 3, 2026
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch 2 times, most recently from 955f2a9 to f5111b3 Compare April 6, 2026 12:45
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.43.0 Update dependency uvicorn to ^0.44.0 Apr 6, 2026
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.44.0 Update dependency uvicorn to ^0.45.0 Apr 21, 2026
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch 2 times, most recently from 7e9c88d to 6b0d3d6 Compare April 23, 2026 10:32
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.45.0 Update dependency uvicorn to ^0.46.0 Apr 23, 2026
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.46.0 Update dependency uvicorn to ^0.47.0 May 14, 2026
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch from 6b0d3d6 to 4a253aa Compare May 14, 2026 18:44
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.47.0 Update dependency uvicorn to ^0.48.0 May 24, 2026
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch from 4a253aa to a65aac6 Compare May 24, 2026 13:02
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch from a65aac6 to b3f5464 Compare June 4, 2026 01:44
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.48.0 Update dependency uvicorn to ^0.49.0 Jun 4, 2026
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch from b3f5464 to cb8b1e4 Compare July 4, 2026 05:08
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.49.0 Update dependency uvicorn to ^0.50.0 Jul 4, 2026
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch from cb8b1e4 to 48587a5 Compare July 6, 2026 10:55
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch from 48587a5 to 4fe439d Compare July 8, 2026 12:50
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.50.0 Update dependency uvicorn to ^0.51.0 Jul 8, 2026
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch from 4fe439d to 872bf3d Compare July 29, 2026 14:55
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.51.0 Update dependency uvicorn to ^0.52.0 Jul 29, 2026
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch from 872bf3d to 4b15258 Compare August 1, 2026 22:37
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch 3 times, most recently from c23e9ba to d3d241a Compare August 19, 2026 16:14
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch from d3d241a to 1101d38 Compare September 14, 2026 11:28
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.52.0 Update dependency uvicorn to ^0.53.0 Sep 14, 2026
@coderabbitai

coderabbitai Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 1cc7402d-6a61-4fd5-af50-71b9a33201ed

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@renovate renovate Bot changed the title Update dependency uvicorn to ^0.53.0 Update dependency uvicorn to ^0.54.0 Sep 25, 2026
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch from 1101d38 to cd73a83 Compare September 25, 2026 14:47
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch from cd73a83 to 57402bd Compare October 15, 2026 16:38
@renovate renovate Bot changed the title Update dependency uvicorn to ^0.54.0 Update dependency uvicorn to ^0.55.0 Nov 28, 2026
@renovate
renovate Bot force-pushed the renovate/uvicorn-0.x branch from 57402bd to af20371 Compare November 28, 2026 14:39
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.

0 participants