Message362317
`sock.getpeername` can fail for multiple reasons (see https://pubs.opengroup.org/onlinepubs/7908799/xns/getpeername.html) but in `asyncio.selector_events._SelectorTransport` it's try/excepted without any logging of the error:
```
if 'peername' not in self._extra:
try:
self._extra['peername'] = sock.getpeername()
except socket.error:
self._extra['peername'] = None
```
This makes it very difficult to debug. Would it be OK if I added here a log with information on the error?
Thanks! |
|
Date |
User |
Action |
Args |
2020-02-20 13:00:09 | dsternlicht | set | recipients:
+ dsternlicht, asvetlov, yselivanov |
2020-02-20 13:00:09 | dsternlicht | set | messageid: <1582203609.18.0.700176939953.issue39700@roundup.psfhosted.org> |
2020-02-20 13:00:09 | dsternlicht | link | issue39700 messages |
2020-02-20 13:00:08 | dsternlicht | create | |
|