Uvicorn 0.55.0 was released on 28 November 2026, and it is worth a careful upgrade if you serve FastAPI, Starlette or any other ASGI app with it. The release adds Python 3.15 support, drops Python 3.10, removes a roughly 40 ms delay on keep-alive requests when you run with --workers or --reload on the asyncio loop, and changes a few behaviours that can show up in logs and tests.
This guide explains each change, shows how to check that the upgrade is safe for your app, and includes a small ASGI app you can use to see the differences yourself. The details come from the official 0.55.0 release notes; the commands below were run against the PyPI release on CPython 3.13.
Step 1: Check your Python version
Uvicorn 0.55.0 requires Python 3.11 or newer. Python 3.10 support was removed in #3152. If you still deploy on 3.10, pip will keep installing 0.54.x for you, so nothing breaks immediately, but you will stop getting fixes.
On the other end, Python 3.15 and the free-threaded 3.15t build are now tested in CI (3.15t is not tested on Windows yet).
Upgrade with your usual tool:
pip install --upgrade "uvicorn==0.55.0"
# or
uv add uvicorn==0.55.0
uvicorn --version
# Running uvicorn 0.55.0 with CPython 3.13.5 on Linux
Step 2: Enjoy faster keep-alive with multiple workers
This is the change most production users will notice. When you ran Uvicorn with --workers or --reload on the default asyncio loop, keep-alive requests could wait about 40 ms. The cause was the listening socket: it is now created with IPPROTO_TCP, so asyncio enables TCP_NODELAY on accepted connections and small responses are no longer held back by Nagle’s algorithm.
The release notes report that with two workers on Linux, the keep-alive p50 went from 41.01 ms to 0.14 ms. If you used uvloop, you were not affected.
A typical production command that benefits:
uvicorn myapp.main:app --host 0.0.0.0 --port 8000 --workers 4
If you previously switched to uvloop only to work around unexplained latency on internal health checks or service-to-service calls, re-measure after upgrading.
Step 3: Faster startup with heavy reload patterns
During development, a pattern such as --reload-exclude '.venv/**/*' could take minutes to resolve in a big project. #3184 fixes that: with 2,000 matching directories, resolving the patterns went from 120 s to 0.39 s according to the notes.
uvicorn myapp.main:app --reload --reload-exclude '.venv/**/*'
Step 4: Know the behaviour changes
These are the items that can change what you see in logs, tests or monitoring.
Access logs now show the raw request target
Before 0.55.0, GET /one%2Ftwo was logged as /one/two and GET /%41 as /A. The access log now uses raw_path, so it shows the target exactly as the client sent it. Your app’s scope["path"] is unchanged; only the log line differs.
Here is a minimal ASGI app that makes the difference visible:
# app.py
async def app(scope, receive, send):
assert scope["type"] == "http"
body = f"path={scope['path']} raw_path={scope['raw_path'].decode()}".encode()
await send({
"type": "http.response.start",
"status": 200,
"headers": [(b"content-type", b"text/plain")],
})
await send({"type": "http.response.body", "body": body})
Run it and request an encoded path:
uvicorn app:app --port 8765
curl "http://127.0.0.1:8765/one%2Ftwo"
On 0.55.0 the access log line reads "GET /one%2Ftwo HTTP/1.1" 200 OK. If you have log-based alerts or dashboards that match decoded paths, update the patterns.
httptools strips trailing whitespace in header values
With --http httptools, a header like X-Test: hello used to reach your app as b"hello ". It is now stripped, matching what h11 and zttp already did. Code that compared raw header values with trailing spaces will now see clean values.
Stricter CLI validation
Two config mistakes now fail fast with a clear usage error instead of crashing later:
$ uvicorn app:app --header X-Foo
Error: Invalid value for '--header': Expected 'Name:Value' format, got 'X-Foo'.
$ uvicorn app:app --limit-max-requests-jitter -5
Error: Invalid value for '--limit-max-requests-jitter': -5 is not in the range x>=0.
Both outputs above are from a real 0.55.0 run. One related tip from testing: write --header values without a space after the colon, for example --header "X-Served-By:demo". With --header "X-Served-By: demo", the value kept its leading space and the h11 protocol rejected it as an illegal header value when the response was sent.
Step 5: WebSocket and HTTP/2 fixes
If you serve WebSockets, three fixes make failure cases cleaner:
- A handshake request that
websocketscan’t parse (for example, a header line over 8 KiB) now gets a response and the connection is closed. Withwebsockets17 or later the client gets a414or431, otherwise a400. Previously the connection could stay open with no response onwebsockets-sansio. - Denial responses sent through the
websocket.http.responseextension behave the same onwebsockets-sansioandwsproto, and a client that disconnects during a denial is reported with code1006on both. - Connection teardown now reaches the WebSocket protocol when the upgrade request fails.
For the experimental HTTP/2 support (--http zttp --http2), requests without a body no longer hang when the app calls receive() before responding, which is exactly what happens with curl. Non-ASCII request targets on the zttp protocols now get a 400 Bad Request on HTTP/1.1 and a reset of only the offending stream on HTTP/2, instead of raising UnicodeDecodeError.
Step 6: Building Uvicorn from source
This only matters if you package Uvicorn yourself. The version now comes from the Git tag using uv-dynamic-versioning. 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.
A safe upgrade checklist
- Confirm every environment runs Python 3.11+.
- Bump Uvicorn in a branch and run your test suite, especially tests that check headers or log output.
- Search log queries and alerts for decoded paths and update them to match raw targets.
- Check deployment scripts for
--headerflags without a colon or with a space after it. - If you use multiple workers on asyncio, compare p50/p95 latency before and after. You should see keep-alive latency drop.
Takeaway
Uvicorn 0.55.0 is a small version bump with a real performance win for multi-worker asyncio deployments and a handful of behaviour changes you should read before upgrading. Move to Python 3.11+, update any log patterns that expect decoded paths, and enjoy faster keep-alive responses. The full list of pull requests is in the 0.54.0…0.55.0 changelog.
