Message373755
I have noticed the following on Linux too:
```
Traceback (most recent call last):
File "/config/custom_components/kef_custom/aiokef.py", line 327, in _disconnect
await self._writer.wait_closed()
File "/usr/local/lib/python3.7/asyncio/streams.py", line 323, in wait_closed
await self._protocol._closed
File "/config/custom_components/kef_custom/aiokef.py", line 299, in _send_message
await self._writer.drain()
File "/usr/local/lib/python3.7/asyncio/streams.py", line 339, in drain
raise exc
File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 814, in _read_ready__data_received
data = self._sock.recv(self.max_size)
ConnectionResetError: [Errno 104] Connection reset by peer
```
after which every invocation of `await asyncio.open_connection` fails with `ConnectionRefusedError` until I restart the entire Python process.
IIUC, just ignoring the exception will not be enough.
This issue is about the `ProactorEventLoop` for Windows specifically, however, my process uses the default event loop on Linux. |
|
Date |
User |
Action |
Args |
2020-07-16 15:13:02 | basnijholt | set | recipients:
+ basnijholt, paul.moore, tim.golden, asvetlov, lukasz.langa, zach.ware, yselivanov, steve.dower, aeros |
2020-07-16 15:13:02 | basnijholt | set | messageid: <1594912382.83.0.461179096687.issue38856@roundup.psfhosted.org> |
2020-07-16 15:13:02 | basnijholt | link | issue38856 messages |
2020-07-16 15:13:02 | basnijholt | create | |
|