New submission from Aleksandr Balezin <geschei...@gmail.com>:

Attached script shows unexpected behavior of the wait() function.
The wait_ function adds done callback on every call and removes it only if a 
waiter is successfully awaited. In case of CancelledError exception during 
"await waiter", callbacks are being accumulated infinitely in task._callbacks.

----------
components: asyncio
files: asyncio_wait_callbacks_leak.py
messages: 340034
nosy: asvetlov, gescheit, yselivanov
priority: normal
severity: normal
status: open
title: asyncio._wait() don't remove callback in case of exception
type: resource usage
versions: Python 3.6, Python 3.7, Python 3.8
Added file: https://bugs.python.org/file48263/asyncio_wait_callbacks_leak.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36613>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to