]> granicus.if.org Git - python/commitdiff
SSLProtocol: set the _transport attribute in the constructor
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 15 Jan 2015 12:16:27 +0000 (13:16 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 15 Jan 2015 12:16:27 +0000 (13:16 +0100)
Lib/asyncio/sslproto.py

index c7fb4e7c60fa667d97167a6b117ca1bd07473241..117dc565b6c316ccc2b4449667805f56174e6426 100644 (file)
@@ -417,6 +417,7 @@ class SSLProtocol(protocols.Protocol):
         self._session_established = False
         self._in_handshake = False
         self._in_shutdown = False
+        self._transport = None
 
     def connection_made(self, transport):
         """Called when the low-level connection is made.