Zum Inhalt springen

Kludex Release Notes

Einträge
31
Quellen
1
Zuletzt aktualisiert

Folge Kludex, um die Release Notes in deinen Feed zu holen.

Uvicorn von Kludex

Version 0.55.0

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Uvicorn von Kludex

Uvicorn 0.54.0: HTTP/2-Trailers und 103 Early Hints

Uvicorn 0.54.0 ergänzt die experimentelle HTTP/2-Implementierung über zttp um HTTP/2-Response-Trailers (ASGI-Extension http.response.trailers) und um 103 Early Hints (ASGI-Extension http.response.early_hint).

📨 Send metadata after the response body

uvicorn 0.54.0 adds response trailers and 103 Early Hints to its experimental HTTP/2 implementation through zttp.

uv add uvicorn==0.54.0 "zttp>=0.0.34"
  • Send HTTP/2 response trailers (#3146). The ASGI http.response.trailers extension lets applications send metadata, such as checksums, after the response body. Clients must send TE: trailers to receive them. Multiple trailer messages are combined before completing the response.
  • HTTP/2 remains experimental and opt-in. Enable it with --http zttp --http2. Upgrade-based h2c and WebSockets over HTTP/2 remain unsupported.

💡 Hint at resources before the final response

  • Send 103 Early Hints over HTTP/2 (#3137). Applications can use the ASGI http.response.early_hint extension to send resource hints before the final response. Each supplied link becomes a separate Link header.

Full changelog: 0.53.0...0.54.0

Originalquelle(öffnet in neuem Tab)Problem melden

Uvicorn von Kludex

Uvicorn 0.53.0: Experimentelles HTTP/2 und zuvloop

Uvicorn 0.53.0 führt experimentelles, optionales HTTP/2 über zttp (--http zttp --http2) sowie die Event-Loop-Option zuvloop (--loop zuvloop, CPython 3.14 oder neuer) ein und verbessert die Handhabung von Verbindungen und Proxys, etwa durch ::1 in den Standardwerten von FORWARDED_ALLOW_IPS und das Auswerten von Connection-close-Tokenlisten.

🌐 Opt-in HTTP/2 support

uvicorn 0.53.0 adds experimental HTTP/2 through zttp, alongside a new zuvloop integration and connection-handling improvements.

uv add uvicorn==0.53.0
  • Serve HTTP/1.1 and HTTP/2 with zttp (#2982, #3101). Install zttp, then enable HTTP/2 with --http zttp --http2. Uvicorn negotiates HTTP/2 over TLS with ALPN and supports cleartext prior knowledge.
  • HTTP/2 remains experimental. Upgrade-based h2c and WebSockets over HTTP/2 are not supported.

⚙️ More event loop choice

  • Run Uvicorn with zuvloop (#3104). Install zuvloop separately and select it explicitly with --loop zuvloop on CPython 3.14 or newer.

🛡️ More reliable connections and proxies

  • Honor Connection: close token lists (#3103). Uvicorn now parses comma-separated tokens case-insensitively across HTTP implementations.
  • Trust IPv6 loopback proxies by default (#3119). The default FORWARDED_ALLOW_IPS value now includes ::1.
  • Keep upgraded WebSockets alive (#3107). Uvicorn cancels the HTTP keep-alive timer when the connection becomes a WebSocket. …

Originalquelle(öffnet in neuem Tab)Problem melden

Uvicorn von Kludex

Uvicorn 0.52.1

Uvicorn 0.52.1 behebt mehrere WebSocket-Probleme, darunter den fehlenden Abschluss des Closing-Handshakes bei serverseitigem Schließen, fehlende Schreib-Flusskontrolle in websockets-sansio, den Umgang mit Verbindungsverlust bei Backpressure sowie doppelte Header in Ablehnungsantworten.

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)

Full Changelog: https://github.com/Kludex/uvicorn/compare/0.52.0...0.52.1

Originalquelle(öffnet in neuem Tab)Problem melden

Uvicorn von Kludex

Uvicorn 0.52.0

Uvicorn 0.52.0 führt eine experimentelle HTTP/1.1-Implementierung auf Basis von zttp ein (auswählbar mit --http zttp, noch nicht für Produktivbetrieb gedacht) und bewahrt nicht-ASCII-WebSocket-Header mit websockets 17.0.

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)

Full Changelog: https://github.com/Kludex/uvicorn/compare/0.51.0...0.52.0

Originalquelle(öffnet in neuem Tab)Problem melden

Uvicorn von Kludex

Uvicorn 0.51.0

Uvicorn 0.51.0 startet Worker bei SIGHUP mit Überlappung neu, was Reloads nahezu ohne Ausfallzeit ermöglicht, und entfernt colorama aus dem Extra „standard“.

What's Changed

Full Changelog: https://github.com/Kludex/uvicorn/compare/0.50.2...0.51.0

Originalquelle(öffnet in neuem Tab)Problem melden

Uvicorn von Kludex

Uvicorn 0.50.1

Uvicorn 0.50.1 trennt in der websockets-sansio-Implementierung kommagetrennte Sec-WebSocket-Protocol-Werte korrekt auf.

What's Changed

New Contributors

Full Changelog: https://github.com/Kludex/uvicorn/compare/0.50.0...0.50.1

Originalquelle(öffnet in neuem Tab)Problem melden

Uvicorn von Kludex

Uvicorn 0.50.0

Uvicorn 0.50.0 bringt Performance-Optimierungen bei Trusted-Host-Prüfung, ASGI-Scope und WebSocket-Payloads, stuft die alte websockets-Implementierung als veraltet ein (auto nutzt nun websockets-sansio) und beendet sich bei Startfehlern mit eigenem Exit-Code, wobei der Supervisor stoppt, wenn ein Worker nicht starten kann.

What's Changed

Full Changelog: https://github.com/Kludex/uvicorn/compare/0.49.0...0.50.0

Originalquelle(öffnet in neuem Tab)Problem melden

Uvicorn von Kludex

Uvicorn 0.49.0

Die Mindestversion von httptools wird auf 0.8.0 angehoben, und die ProxyHeadersMiddleware verarbeitet doppelte Forwarding-Header wieder, statt sie wie in 0.48.0 zu ignorieren.

What's Changed

Full Changelog: https://github.com/Kludex/uvicorn/compare/0.48.0...0.49.0

Originalquelle(öffnet in neuem Tab)Problem melden

Uvicorn von Kludex

Uvicorn 0.48.0

ssl_ciphers steht standardmäßig auf None und nutzt damit die OpenSSL-Standardwerte, und die ProxyHeadersMiddleware ignoriert doppelte Forwarding-Header.

What's Changed

Full Changelog: https://github.com/Kludex/uvicorn/compare/0.47.0...0.48.0

Originalquelle(öffnet in neuem Tab)Problem melden

Uvicorn von Kludex

Uvicorn 0.47.0

Die ASGI-App wird im Parent-Prozess vorab importiert, ssl_context_factory ermöglicht eine eigene SSLContext-Konfiguration, und fd=0 gilt mit reload/workers als gültiger File Descriptor.

What's Changed

Full Changelog: https://github.com/Kludex/uvicorn/compare/0.46.0...0.47.0

Originalquelle(öffnet in neuem Tab)Problem melden

Uvicorn von Kludex

Uvicorn 0.46.0

Die wsproto-Implementierung unterstützt jetzt ws_max_size, ws_ping_interval und ws_ping_timeout, und websockets-sansio nutzt für eingehende WebSocket-Nachrichten ein bytearray als Puffer.

What's Changed

Full Changelog: https://github.com/Kludex/uvicorn/compare/0.45.0...0.46.0

Originalquelle(öffnet in neuem Tab)Problem melden

Uvicorn von Kludex

Uvicorn 0.45.0

Die Version erhält unter anderem das Flag --reset-contextvars, behält weitergeleitete Client-Ports in der Proxy-Header-Middleware bei, akzeptiert os.PathLike für log_config und log_level ohne Beachtung der Groß-/Kleinschreibung und nimmt mehrere frühere Änderungen zurück.

What's Changed

New Contributors

Full Changelog: https://github.com/Kludex/uvicorn/compare/0.44.0...0.45.0

Originalquelle(öffnet in neuem Tab)Problem melden

Uvicorn von Kludex

Uvicorn 0.43.0

Bei Streaming-Responses wird beim Herunterfahren des Servers das ASGI-Event http.disconnect ausgelöst, ab Python 3.11 wird der native context-Parameter von create_task genutzt und der Cast in den ASGI-Typen entfällt.

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: https://github.com/Kludex/uvicorn/compare/0.42.0...0.43.0

Originalquelle(öffnet in neuem Tab)Problem melden

Uvicorn von Kludex

Uvicorn 0.42.0

Request-Bodies werden per bytearray gesammelt, um bei fragmentierten Bodies quadratische Speicherallokation zu vermeiden, außerdem wurden die httptools-Regex HEADER_RE und mehrere Fehler der websockets-sans-io-Implementierung korrigiert.

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: https://github.com/Kludex/uvicorn/compare/0.41.0...0.42.0

Originalquelle(öffnet in neuem Tab)Problem melden