mirror of https://github.com/python/cpython
gh-106503: asyncio._SelectorSocketTransport: fix cyclic reference on close(). (#106504)
This commit is contained in:
parent
24fb627ea7
commit
3e5ce7968f
|
@ -1202,6 +1202,7 @@ class _SelectorSocketTransport(_SelectorTransport):
|
|||
|
||||
def close(self):
|
||||
self._read_ready_cb = None
|
||||
self._write_ready = None
|
||||
super().close()
|
||||
|
||||
|
||||
|
|
|
@ -615,6 +615,7 @@ Marius Gedminas
|
|||
Jan-Philip Gehrcke
|
||||
Thomas Gellekum
|
||||
Gabriel Genellina
|
||||
Andrew Geng
|
||||
Philip Georgi
|
||||
Christos Georgiou
|
||||
Elazar (אלעזר) Gershuni
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Fix ref cycle in :class:`!asyncio._SelectorSocketTransport` by removing
|
||||
``_write_ready`` in ``close``.
|
Loading…
Reference in New Issue