Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue36613

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:asyncio._wait() don't remove callback in case of exception
Type:resource usageStage:resolved
Components:asyncioVersions:Python 3.8, Python 3.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: asvetlov, gescheit, miss-islington, yselivanov
Priority:normalKeywords:patch

Created on2019-04-12 12:38 bygescheit, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.

Files
File nameUploadedDescriptionEdit
asyncio_wait_callbacks_leak.pygescheit,2019-04-12 12:38
Pull Requests
URLStatusLinkedEdit
PR 12800mergedgescheit,2019-04-12 12:52
PR 13076mergedmiss-islington,2019-05-03 15:18
Messages (3)
msg340034 -(view)Author: Aleksandr Balezin (gescheit)*Date: 2019-04-12 12:38
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.
msg341343 -(view)Author: miss-islington (miss-islington)Date: 2019-05-03 15:18
New changesetc1964e9e2177eabe821f3e4243be8b99e0d2d542 by Miss Islington (bot) (gescheit) in branch 'master':bpo-36613: call remove_done_callback if exception (GH-12800)https://github.com/python/cpython/commit/c1964e9e2177eabe821f3e4243be8b99e0d2d542
msg341345 -(view)Author: miss-islington (miss-islington)Date: 2019-05-03 15:35
New changeset769ac7e7b809dfc60abd0d7e6f020c6ffe06a6c0 by Miss Islington (bot) in branch '3.7':bpo-36613: call remove_done_callback if exception (GH-12800)https://github.com/python/cpython/commit/769ac7e7b809dfc60abd0d7e6f020c6ffe06a6c0
History
DateUserActionArgs
2022-04-11 14:59:13adminsetgithub: 80794
2019-05-03 15:35:54miss-islingtonsetmessages: +msg341345
2019-05-03 15:19:10asvetlovsetstatus: open -> closed
stage: patch review -> resolved
resolution: fixed
versions: - Python 3.6
2019-05-03 15:18:17miss-islingtonsetpull_requests: +pull_request12990
2019-05-03 15:18:06miss-islingtonsetnosy: +miss-islington
messages: +msg341343
2019-04-12 12:52:46gescheitsetkeywords: +patch
stage: patch review
pull_requests: +pull_request12728
2019-04-12 12:38:08gescheitcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp