Commit d1f57511 authored by Michaël Sghaïer's avatar Michaël Sghaïer Committed by Yury Selivanov

Break circular references when closing SSLTransport objects (#981)

parent a0e3d2dd
......@@ -681,12 +681,14 @@ class SSLProtocol(protocols.Protocol):
self._transport._force_close(exc)
def _finalize(self):
self._sslpipe = None
if self._transport is not None:
self._transport.close()
def _abort(self):
if self._transport is not None:
try:
try:
if self._transport is not None:
self._transport.abort()
finally:
self._finalize()
finally:
self._finalize()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment