Message304619
| Author |
vstinner |
| Recipients |
ned.deily, pitrou, vstinner |
| Date |
2017年10月19日.13:32:28 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1508419948.48.0.213398074469.issue31233@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The current code leaks memory since it never clears threads which completed. We need a cleanup function similar to ForkingMixIn.collect_children() which is called by handle_timeout() and service_actions().
We can check if a thread is alive: thread.is_alive(), to decide to remove it or not.
Moreover, maybe we should keep a list of weak references? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年10月19日 13:32:28 | vstinner | set | recipients:
+ vstinner, pitrou, ned.deily |
| 2017年10月19日 13:32:28 | vstinner | set | messageid: <1508419948.48.0.213398074469.issue31233@psf.upfronthosting.co.za> |
| 2017年10月19日 13:32:28 | vstinner | link | issue31233 messages |
| 2017年10月19日 13:32:28 | vstinner | create |
|