Константин Волков added the comment:
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.
Added file: http://bugs.python.org/file44756/task_example.py
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list