Skip to content

Fix server-side transports on Python 3.11/3.12, and report accept-path errors loudly - #2

Merged
jph00 merged 1 commit into
mainfrom
pr/fix-server-side-transports-on-python-3-11-3-12
Aug 28, 2026
Merged

Fix server-side transports on Python 3.11/3.12, and report accept-path errors loudly#2
jph00 merged 1 commit into
mainfrom
pr/fix-server-side-transports-on-python-3-11-3-12

Conversation

@jph00

@jph00 jph00 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Server._attach/_detach gained their transport argument in 3.13 (gh-113538); calling the 3.13 signature made every server-side connection on 3.11/3.12 fail with a TypeError at transport creation, silently, because the stdlib accept path reports such errors only in debug mode. The calls are now version-gated. _make_socket_transport additionally reports any server-side transport-creation failure through the loop's exception handler before re-raising, so this class of bug can no longer be invisible. The test helper switches from asyncio.run(loop_factory=) (3.12+) to asyncio.Runner, fixing the suite itself on 3.11. Verified 11/11 on 3.11 through 3.14 locally, plus the full oracle sweep.

@jph00 jph00 added the bug Something isn't working label Aug 28, 2026
@jph00
jph00 merged commit e3bd4e5 into main Aug 28, 2026
5 checks passed
@jph00
jph00 deleted the pr/fix-server-side-transports-on-python-3-11-3-12 branch August 28, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant