Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbd8b32b

Browse files
[3.11]GH-98539: fix ref cycle in_SSLProtocolTransport after close (GH-98540) (#98551)
GH-98539: fix ref cycle in `_SSLProtocolTransport` after close (GH-98540)(cherry picked from commit62bf5d8)Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
1 parentc4ad3fc commitbd8b32b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎Lib/asyncio/sslproto.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,11 @@ def close(self):
107107
protocol's connection_lost() method will (eventually) called
108108
with None as its argument.
109109
"""
110-
self._closed=True
111-
self._ssl_protocol._start_shutdown()
110+
ifnotself._closed:
111+
self._closed=True
112+
self._ssl_protocol._start_shutdown()
113+
else:
114+
self._ssl_protocol=None
112115

113116
def__del__(self,_warnings=warnings):
114117
ifnotself._closed:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp