This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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