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 vstinner
Recipients Ben.Darnell, asvetlov, gvanrossum, pitrou, vstinner, yselivanov
Date 2017-11-16.16:38:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510850330.51.0.213398074469.issue32038@psf.upfronthosting.co.za>
In-reply-to
Content
From my example: "finally: sock._io_refs -= 1"

Oh, sock._decref_socketios() must be uesd here to really close the socket if it was closed in the meanwhile:

    def _decref_socketios(self):
        if self._io_refs > 0:
            self._io_refs -= 1
        if self._closed:
            self.close()
History
Date User Action Args
2017-11-16 16:38:50vstinnersetrecipients: + vstinner, gvanrossum, pitrou, asvetlov, Ben.Darnell, yselivanov
2017-11-16 16:38:50vstinnersetmessageid: <1510850330.51.0.213398074469.issue32038@psf.upfronthosting.co.za>
2017-11-16 16:38:50vstinnerlinkissue32038 messages
2017-11-16 16:38:50vstinnercreate