@@ -294,22 +294,21 @@ def feed_appdata(self, data, offset=0):
294294class _SSLProtocolTransport (transports ._FlowControlMixin ,
295295 transports .Transport ):
296296
297- def __init__ (self , loop , ssl_protocol , app_protocol ):
297+ def __init__ (self , loop , ssl_protocol ):
298298 self ._loop = loop
299299 # SSLProtocol instance
300300 self ._ssl_protocol = ssl_protocol
301- self ._app_protocol = app_protocol
302301 self ._closed = False
303302
304303 def get_extra_info (self , name , default = None ):
305304 """Get optional transport information."""
306305 return self ._ssl_protocol ._get_extra_info (name , default )
307306
308307 def set_protocol (self , protocol ):
309- self ._app_protocol = protocol
308+ self ._ssl_protocol . _app_protocol = protocol
310309
311310 def get_protocol (self ):
312- return self ._app_protocol
311+ return self ._ssl_protocol . _app_protocol
313312
314313 def is_closing (self ):
315314 return self ._closed
@@ -436,8 +435,7 @@ def __init__(self, loop, app_protocol, sslcontext, waiter,
436435 self ._waiter = waiter
437436 self ._loop = loop
438437 self ._app_protocol = app_protocol
439- self ._app_transport = _SSLProtocolTransport (self ._loop ,
440- self , self ._app_protocol )
438+ self ._app_transport = _SSLProtocolTransport (self ._loop , self )
441439 # _SSLPipe instance (None until the connection is made)
442440 self ._sslpipe = None
443441 self ._session_established = False
0 commit comments