@@ -293,22 +293,21 @@ def feed_appdata(self, data, offset=0):
293293class _SSLProtocolTransport (transports ._FlowControlMixin ,
294294 transports .Transport ):
295295
296- def __init__ (self , loop , ssl_protocol , app_protocol ):
296+ def __init__ (self , loop , ssl_protocol ):
297297 self ._loop = loop
298298 # SSLProtocol instance
299299 self ._ssl_protocol = ssl_protocol
300- self ._app_protocol = app_protocol
301300 self ._closed = False
302301
303302 def get_extra_info (self , name , default = None ):
304303 """Get optional transport information."""
305304 return self ._ssl_protocol ._get_extra_info (name , default )
306305
307306 def set_protocol (self , protocol ):
308- self ._app_protocol = protocol
307+ self ._ssl_protocol . _app_protocol = protocol
309308
310309 def get_protocol (self ):
311- return self ._app_protocol
310+ return self ._ssl_protocol . _app_protocol
312311
313312 def is_closing (self ):
314313 return self ._closed
@@ -431,8 +430,7 @@ def __init__(self, loop, app_protocol, sslcontext, waiter,
431430 self ._waiter = waiter
432431 self ._loop = loop
433432 self ._app_protocol = app_protocol
434- self ._app_transport = _SSLProtocolTransport (self ._loop ,
435- self , self ._app_protocol )
433+ self ._app_transport = _SSLProtocolTransport (self ._loop , self )
436434 # _SSLPipe instance (None until the connection is made)
437435 self ._sslpipe = None
438436 self ._session_established = False
0 commit comments