When a connection over SSL to the RabbitMQ get's closed, we get this nice error as a race condition.
Fatal error on SSL transport
protocol: <asyncio.sslproto.SSLProtocol object at 0x7fc508460640>
transport: <_SelectorSocketTransport closing fd=7>
Traceback (most recent call last):
File "/usr/lib/python3.10/asyncio/selector_events.py", line 916, in write
n = self._sock.send(data)
OSError: [Errno 9] Bad file descriptor
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/asyncio/sslproto.py", line 690, in _process_write_backlog
self._transport.write(chunk)
File "/usr/lib/python3.10/asyncio/selector_events.py", line 922, in write
self._fatal_error(exc, 'Fatal write error on socket transport')
File "/usr/lib/python3.10/asyncio/selector_events.py", line 717, in _fatal_error
self._force_close(exc)
File "/usr/lib/python3.10/asyncio/selector_events.py", line 729, in _force_close
self._loop.call_soon(self._call_connection_lost, exc)
File "/usr/lib/python3.10/asyncio/base_events.py", line 750, in call_soon
self._check_closed()
File "/usr/lib/python3.10/asyncio/base_events.py", line 515, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
When a connection over SSL to the RabbitMQ get's closed, we get this nice error as a race condition.