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:51:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510851103.82.0.213398074469.issue32038@psf.upfronthosting.co.za>
In-reply-to
Content
> Hmm... _decref_socketios() is not really a public API.  I think it would be nice to have an official way to deal with this, and a socket close callback sounds reasonable to me.

I dislike the idea of an event when a socket is closed. It doesn't prevent a crash if you are using the socket with the GIL released.

I prefer to "hold" the socket while using it.
History
Date User Action Args
2017-11-16 16:51:43vstinnersetrecipients: + vstinner, gvanrossum, pitrou, asvetlov, Ben.Darnell, yselivanov
2017-11-16 16:51:43vstinnersetmessageid: <1510851103.82.0.213398074469.issue32038@psf.upfronthosting.co.za>
2017-11-16 16:51:43vstinnerlinkissue32038 messages
2017-11-16 16:51:43vstinnercreate