This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dsternlicht
Recipients asvetlov, dsternlicht, yselivanov
Date 2020-02-20.13:00:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582203609.18.0.700176939953.issue39700@roundup.psfhosted.org>
In-reply-to
Content
`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!
History
Date User Action Args
2020-02-20 13:00:09dsternlichtsetrecipients: + dsternlicht, asvetlov, yselivanov
2020-02-20 13:00:09dsternlichtsetmessageid: <1582203609.18.0.700176939953.issue39700@roundup.psfhosted.org>
2020-02-20 13:00:09dsternlichtlinkissue39700 messages
2020-02-20 13:00:08dsternlichtcreate