[issue28447] socket.getpeername() failure on broken TCP/IP connection

R. David Murray report at bugs.python.org
Fri Oct 21 09:44:40 EDT 2016


R. David Murray added the comment:

The socket module is a relatively thin wrapper around the C socket library.  'getpeername' is inspecting the *current* peer of the socket, and if there is no current peer, there is no current peer name.  Retaining information the socket library does not is out of scope for the python socket library.  It could be done via a higher level wrapper library, but that would be out of scope for the stdlib unless someone develops something that is widely popular and used by many many people.

----------
resolution: remind -> not a bug
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28447>
_______________________________________


More information about the Python-bugs-list mailing list