Константин Волков 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>
<http://bugs.python.org/issue28212>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to