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 christian.heimes
Recipients christian.heimes
Date 2017-12-30.09:37:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
os.close(fd) of a socket fd does not work some platforms, e.g. Windows. In the past we have used socket.socket(fileno=fd).close() to close a socket in a platform independent way. With #28134 it may no longer work in all cases, most noticeable when the socket has neither been connected nor bound yet and auto-detection of type and family is used.

Instead of adding more hacks, I propose to add a socket.close(fd) function as cross-platform way to close a socket fd. It won't be the first function that mimics an o' module function. The socket module already has the undocumented socket.dup(fd) function.
Date User Action Args
2017-12-30 09:37:23christian.heimessetrecipients: + christian.heimes
2017-12-30 09:37:23christian.heimessetmessageid: <>
2017-12-30 09:37:23christian.heimeslinkissue32454 messages
2017-12-30 09:37:23christian.heimescreate