Message277041
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. |
|
Date |
User |
Action |
Args |
2016-09-20 16:33:13 | Константин Волков | set | recipients:
+ Константин Волков, gvanrossum, r.david.murray, docs@python, yselivanov |
2016-09-20 16:33:13 | Константин Волков | set | messageid: <1474389193.11.0.536487385549.issue28212@psf.upfronthosting.co.za> |
2016-09-20 16:33:13 | Константин Волков | link | issue28212 messages |
2016-09-20 16:33:13 | Константин Волков | create | |
|