Message277041
| Author |
Константин Волков |
| Recipients |
docs@python, gvanrossum, r.david.murray, yselivanov, Константин Волков |
| Date |
2016年09月20日.16:33:12 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1474389193.11.0.536487385549.issue28212@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Attached file with test example. There in "ping" task "except" and "finally" sections never called as expected (but code inside "try" will work).
Server is closed while client connection is active, and it just removes reading task from loop. You can still find it through Task.all_tasks(), but it is weakref array. So, sometime later GC will simply delete this task and no finalization will be performed. |
|