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 amajorek
Recipients amajorek
Date 2011-03-09.19:29:51
SpamBayes Score 0.0051085926
Marked as misclassified No
Message-id <1299698993.48.0.0930746174281.issue11453@psf.upfronthosting.co.za>
In-reply-to
Content
asyncore.file_wrapper duplicates file descriptor of given file and closes it in it's close method.

But unlike socket.socket class it does not automatically call close when object is garbage collected.

Users of regular sockets and asyncore.dispatcher do not experience resource leaks when they forget to call self.close() in handle_close().

But people using file_dispatcher do loose file descriptor every time file_wrapper object is garbage collected without calling self.close() first.
History
Date User Action Args
2011-03-09 19:29:53amajoreksetrecipients: + amajorek
2011-03-09 19:29:53amajoreksetmessageid: <1299698993.48.0.0930746174281.issue11453@psf.upfronthosting.co.za>
2011-03-09 19:29:51amajoreklinkissue11453 messages
2011-03-09 19:29:51amajorekcreate