Title: Avoid circular references in asyncio streams
Type: Stage: resolved
Components: asyncio Versions: Python 3.8
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, yselivanov
Priority: normal Keywords: patch

Created on 2018-09-11 23:47 by asvetlov, last changed 2018-09-12 18:43 by asvetlov. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 9201 merged asvetlov, 2018-09-11 23:47
Messages (2)
msg325095 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2018-09-11 23:47
Now we have a cross-reference between asyncio stream reader and protocol.

It prevents objects deletion on ref-counting and requires a garbage collector run to destroy the stream.
msg325164 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2018-09-12 18:43
New changeset a5d1eb8d8b7add31b5f5d9bbb31cee1a491b2c08 by Andrew Svetlov in branch 'master':
bpo-34638: Store a weak reference to stream reader to break strong references loop (GH-9201)
Date User Action Args
2018-09-12 18:43:38asvetlovsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2018-09-12 18:43:07asvetlovsetmessages: + msg325164
2018-09-11 23:47:52asvetlovsetkeywords: + patch
stage: patch review
pull_requests: + pull_request8635
2018-09-11 23:47:26asvetlovcreate