From patchwork Tue Dec 1 20:31:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Anavi X-Patchwork-Id: 106882 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.21199.1796157121488866224 for ; Tue, 01 Dec 2026 12:32:01 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=r0B7VFBE; spf=pass (domain: konsulko.com, ip: 209.85.221.51, mailfrom: leon.anavi@konsulko.com) Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-492690dd5daso9497835f8f.1 for ; Tue, 01 Dec 2026 12:32:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1796157120; x=1796761920; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=HSnf+vXpALe9FOd8cyoQLnEPDzqhxxJqmdDuSCRNTlk=; b=r0B7VFBE3mTXYzLD5RkL6utIK6hmGud5t/yszsJ19S7PIWHpo3vdB/KXdptYywy4dA V2oxLJFk0hNGFYHmcRnHOgj0ZXBSk65tIWe/XgU0XRbfq5xCbh8/hH19avSTKRn32Zcp A0QsWskVysXSWLW2P0rXkHls/3qxzxMGiIWvU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796157120; x=1796761920; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=HSnf+vXpALe9FOd8cyoQLnEPDzqhxxJqmdDuSCRNTlk=; b=l2BkQBe0p6C7ZYwZQsfSBHspeVifTgCzD9Yw69rwxiVXOKQsnMPFKaX4+hSQ1JjVfl 2mezhuG/sQd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Izx9zy/sx/cvHnIQ1MR+zx4oz LQ+4DUFBGJkHHTmfL937lMz/dbHDpsDoWaGBl7KY1xRWhoBE8R8OPCg== X-Received: by 2002:a05:6000:4705:b0:48f:cb37:3ec3 with SMTP id ffacd0b85a97d-4abb400c591mr76512142f8f.41.1796157119692; Tue, 01 Dec 2026 12:31:59 -0800 (PST) Return-Path: Received: from tone.k.g (lan.nucleusys.com. [92.247.61.126]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6b110d56sm73312377f8f.40.2026.12.01.12.31.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 12:31:58 -0800 (PST) From: Leon Anavi To: openembedded-devel@lists.openembedded.org Cc: Leon Anavi Subject: [meta-python][PATCH 08/18] python3-httpcore2: Upgrade 2.16.2 -> 2.17.0 Date: Tue, 1 Dec 2026 22:31:35 +0200 Message-ID: <20261201203145.3954930-8-leon.anavi@konsulko.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261201203145.3954930-1-leon.anavi@konsulko.com> References: <20261201203145.3954930-1-leon.anavi@konsulko.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 20:32:10 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133771 Upgrade to release 2.17.0: Less CPU per request, and pools that scale: httpx2 and httpcore2 2.17.0 are a minor release. Requests cost less CPU, and the cost no longer climbs steeply with the number of pooled connections. Proxy options, IPv6 zones and cookies also change behaviour in a few places, so read those sections before you upgrade. - Idle connections no longer slow down every request. httpcore2 polled every idle HTTP/1.1 socket at the start and end of each request. It now checks only the connection it is about to reuse. A connection that the server closed stays in the pool until it is reused, its keep-alive expires, or it is evicted. - Repeated URLs are parsed once. The 128 most recent URL strings of up to 2,048 characters are cached. The cached strings, including any credentials in them, stay in memory until they are evicted. - Less fixed work on every request. An empty cancellation shield, a copy of the client headers, and a repeated socket lookup are skipped. Transport options now reach the proxy: - uds, local_address, retries and socket_options apply to HTTP proxy connections. HTTPTransport and AsyncHTTPTransport silently ignored them when proxy was set. If you already pass them together with a proxy, they now take effect. For example, uds sends the proxy connection over the Unix socket. - retries works with SOCKS proxies. The TCP connection to the proxy is retried with the same backoff as a direct connection. SOCKS proxies still do not support uds, local_address and socket_options. IPv6 zones and cookies: - [fe80::1%25en0] and [fe80::1%en0] are the same host. URL.host returns the zone decoded, as fe80::1%en0, and str(url) and URL.netloc always write %25. A URL in the %25 form failed to connect before. Cookies saved under a bare %en0 URL no longer match after upgrading. - The zone is not sent in the Host header. A request to http://[fe80::1%en0]/ sent Host: [fe80::1%en0], which servers such as Apache and lighttpd reject. - Cookie handling no longer slows down with long URLs. The cookie jar gets the request URL without userinfo, query or fragment, and with at most 1024 bytes of path. A response to a URL whose directory is longer than 1024 bytes sets and deletes no cookies, and http://user:pass@example.org/ now shares cookies with http://example.org/. - Copying Cookies keeps its policy. A policy on the client jar, such as one with blocked_domains, was ignored on requests that passed cookies=. Responses, timeouts and errors: - Open streamed responses no longer raise at shutdown. RuntimeError: aclose(): asynchronous generator is already running could appear when the event loop shut down, or the garbage collector ran, with streamed responses still open. Response.aiter_bytes() no longer calls aiter_raw(), so overriding aiter_raw() no longer affects aiter_bytes(), aiter_text(), aiter_lines() and aread(). - Response.aclose() can be retried. After a close that was cancelled or raised, the response was already marked as closed and the stream stayed open. A second call now closes it. - response.elapsed is set for responses that arrive closed. It raised RuntimeError when a transport returned a loaded response, such as a MockTransport handler returning Response(200, json=...). - Timeout rejects unsupported values when it is built. A value such as an httpx.Timeout now raises TypeError up front. Before, the request failed later, while connecting. - Header encoding errors name the header. The UnicodeEncodeError for a header value that cannot be encoded now ends with (header 'auth'). Signed-off-by: Leon Anavi --- ...{python3-httpcore2_2.16.2.bb => python3-httpcore2_2.17.0.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-httpcore2_2.16.2.bb => python3-httpcore2_2.17.0.bb} (88%) diff --git a/meta-python/recipes-devtools/python/python3-httpcore2_2.16.2.bb b/meta-python/recipes-devtools/python/python3-httpcore2_2.17.0.bb similarity index 88% rename from meta-python/recipes-devtools/python/python3-httpcore2_2.16.2.bb rename to meta-python/recipes-devtools/python/python3-httpcore2_2.17.0.bb index b2a72c3949..68c976e84d 100644 --- a/meta-python/recipes-devtools/python/python3-httpcore2_2.16.2.bb +++ b/meta-python/recipes-devtools/python/python3-httpcore2_2.17.0.bb @@ -5,7 +5,7 @@ HOMEPAGE = "https://github.com/pydantic/httpx2" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE.md;md5=77c5a523c15d4a5887b081bba41ca110" -SRC_URI[sha256sum] = "6c519d0f7b44f7269fa9bbb4d2763db395a4a2370f046d8e8e0a4b38227815d2" +SRC_URI[sha256sum] = "cf652b1f8e892ada4ab189b395c444ca3afbea4cb9a05f9a8359431228c0d040" inherit pypi python_hatchling