Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

asyncio.open_connection happy_eyeballs_delay leaves refcycles with exception tracebacks #124858

Closed
Labels
@graingert

Description

@graingert

Bug report

Bug description:

importasyncioimportgcimportobjgraphimportweakrefasyncdefamain():exc=Nonetry:awaitasyncio.open_connection(host="localhost",port=8080,happy_eyeballs_delay=0.25        )    except*OSErrorasexcs:exc=excs.exceptions[0]assertexcisnotNoneprint(gc.get_referrers(exc))asyncio.run(amain())

should be empty but you get a bunch of exceptions lists:

[[ConnectionRefusedError(111, "Connect call failed ('127.0.0.1', 8080)")], [ConnectionRefusedError(111, "Connect call failed ('127.0.0.1', 8080)")]]

CPython versions tested on:

3.12, 3.13, CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp