Message130458
| 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:53 | amajorek | set | recipients:
+ amajorek |
| 2011年03月09日 19:29:53 | amajorek | set | messageid: <1299698993.48.0.0930746174281.issue11453@psf.upfronthosting.co.za> |
| 2011年03月09日 19:29:51 | amajorek | link | issue11453 messages |
| 2011年03月09日 19:29:51 | amajorek | create |
|