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

R. David Murray report at bugs.python.org
Mon Oct 24 11:18:23 EDT 2016


R. David Murray added the comment:

Your example does not show a destroyed socket object, so to what are you referring?  Python won't recycle an object as garbage until there are no remaining references to it.

If you think that there is information the socket object "knows" that it is throwing away when the socket is closed, you might be correct (I haven't checked the code), but that would be *correct* behavior at this API level and design: since the socket is no longer connected, that information is no longer valid.

Please leave the issue closed until you convince us there's a bug :)  If you want to propose some sort of enhancement, the correct forum for this level of enhancement would be the python-ideas mailing list.

----------
resolution: wont fix -> not a bug
status: pending -> closed

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


More information about the Python-bugs-list mailing list