Repository navigation
Update dependency uvicorn to v0.55.0 - #23
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.54.0→==0.55.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
Kludex/uvicorn (uvicorn)
v0.55.0: Version 0.55.0Compare Source
🐍 Python 3.15 in, Python 3.10 out
uvicorn0.55.0 supports Python 3.15 and drops Python 3.10. It also removes a 40 ms delay on keep-alive requests with--workersor--reloadon the asyncio loop, and fixes several HTTP and WebSocket edge cases.uv add uvicorn==0.55.0uvicornyourself. The build needsuv-dynamic-versioning, and a build from a GitHub source tarball gets version0.0.0. Build from the sdist on PyPI, or setUV_DYNAMIC_VERSIONING_BYPASSto the version.⚡ Faster keep-alive requests and startup
--workersor--reloadon the asyncio loop (#3199). The listening socket is now created withIPPROTO_TCP, so asyncio enablesTCP_NODELAYon accepted connections. With 2 workers on Linux, the keep-alive p50 went from 41.01 ms to 0.14 ms.uvloopandzuvloopwere not affected.--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
websocketscannot parse closes the connection (#3236). Withwebsockets-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 a414or431fromwebsockets17 or later, or a400otherwise, and the connection is closed.websockets-sansioandwsproto(#3138). Rejecting a connection through thewebsocket.http.responseextension no longer logsASGI callable returned without completing handshake.onwebsockets-sansio. A server shutdown while a denial body is still streaming no longer raisesLocalProtocolErroronwsproto. A client that disconnects during a denial response is reported with code1006on both.🧹 Stricter and more accurate request handling
--http zttp --http2, an application that calledreceive()before responding never got an answer when the client ended the stream on the HEADERS frame, as curl does.GET /one%2Ftwowas logged as/one/two, andGET /%41as/A. The access log now usesraw_path.zttpprotocols (#3197). They used to raiseUnicodeDecodeError. HTTP/1.1 now answers400 Bad Request, and HTTP/2 resets only the offending stream.--http httptoolsstrips trailing whitespace from request header values (#3214).X-Test: helloreached the application asb"hello ".h11andzttpalready stripped it.--headerwithout a colon is a usage error (#3200).--header X-Fooused to crash with aValueErrorwhile loading the config.--limit-max-requests-jitteris rejected by the CLI (#3092). Uvicorn used to start and then raise aValueErrorfrom inside the server loop.Full changelog: 0.54.0...0.55.0
Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.