Closed
Description
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
Projects
Status
Done