Kaydet (Commit) 8d9c145f authored tarafından Victor Stinner's avatar Victor Stinner

asyncio: _make_ssl_transport: make the waiter parameter optional

üst 84d64a9c
...@@ -201,7 +201,7 @@ class BaseEventLoop(events.AbstractEventLoop): ...@@ -201,7 +201,7 @@ class BaseEventLoop(events.AbstractEventLoop):
"""Create socket transport.""" """Create socket transport."""
raise NotImplementedError raise NotImplementedError
def _make_ssl_transport(self, rawsock, protocol, sslcontext, waiter, *, def _make_ssl_transport(self, rawsock, protocol, sslcontext, waiter=None, *,
server_side=False, server_hostname=None, server_side=False, server_hostname=None,
extra=None, server=None): extra=None, server=None):
"""Create SSL transport.""" """Create SSL transport."""
......
...@@ -55,7 +55,7 @@ class BaseSelectorEventLoop(base_events.BaseEventLoop): ...@@ -55,7 +55,7 @@ class BaseSelectorEventLoop(base_events.BaseEventLoop):
return _SelectorSocketTransport(self, sock, protocol, waiter, return _SelectorSocketTransport(self, sock, protocol, waiter,
extra, server) extra, server)
def _make_ssl_transport(self, rawsock, protocol, sslcontext, waiter, *, def _make_ssl_transport(self, rawsock, protocol, sslcontext, waiter=None, *,
server_side=False, server_hostname=None, server_side=False, server_hostname=None,
extra=None, server=None): extra=None, server=None):
return _SelectorSslTransport( return _SelectorSslTransport(
...@@ -165,7 +165,7 @@ class BaseSelectorEventLoop(base_events.BaseEventLoop): ...@@ -165,7 +165,7 @@ class BaseSelectorEventLoop(base_events.BaseEventLoop):
else: else:
if sslcontext: if sslcontext:
self._make_ssl_transport( self._make_ssl_transport(
conn, protocol_factory(), sslcontext, None, conn, protocol_factory(), sslcontext,
server_side=True, extra={'peername': addr}, server=server) server_side=True, extra={'peername': addr}, server=server)
else: else:
self._make_socket_transport( self._make_socket_transport(
......
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