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

Spurious "Exception in callback None()" after upgrading to 3.12 #115514

Closed
Labels
stdlibPython modules in the Lib dirtopic-asynciotype-bugAn unexpected behavior, bug, or error
@Tasssadar

Description

@Tasssadar

Bug report

Bug description:

Hello, after upgrading our application to 3.12.1 that uses aiohttp to download stuff via HTTPS as well as connects to some RabbitMQ servers via ssl, we get this spurious exception to stderr, dozens-hundres of them in close succession.

They happen after several minutes of running (so after dozens of ssl connections are used).

Unfortunately, I can't tell what is the culprit, the trace contains nothing other than the runtime :( I can provide more info if you give me some pointers on where to look. It looks like write-after-close, but the "writing" is done by internal asyncio mechanisms.

Exception in callback None()handle: <Handle created at /usr/local/lib/python3.12/asyncio/selector_events.py:313>source_traceback: Object created at (most recent call last):  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 671, in run_until_complete    self.run_forever()  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 638, in run_forever    self._run_once()  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1963, in _run_once    handle._run()  File "/usr/local/lib/python3.12/asyncio/events.py", line 84, in _run    self._context.run(self._callback, *self._args)  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1111, in _write_sendmsg    self._maybe_resume_protocol()  # May append to buffer.  File "/usr/local/lib/python3.12/asyncio/transports.py", line 300, in _maybe_resume_protocol    self._protocol.resume_writing()  File "/usr/local/lib/python3.12/asyncio/sslproto.py", line 907, in resume_writing    self._process_outgoing()  File "/usr/local/lib/python3.12/asyncio/sslproto.py", line 715, in _process_outgoing    self._transport.write(data)  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1084, in write    self._loop._add_writer(self._sock_fd, self._write_ready)  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 313, in _add_writer    handle = events.Handle(callback, args, self, None)

CPython versions tested on:

3.12

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtopic-asynciotype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp