mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
asyncio: Add server_hostname as create_connection() argument, with secure default.
This commit is contained in:
parent
2b430b8720
commit
21c85a7124
4 changed files with 78 additions and 5 deletions
|
@ -172,7 +172,7 @@ class AbstractEventLoop:
|
|||
|
||||
def create_connection(self, protocol_factory, host=None, port=None, *,
|
||||
ssl=None, family=0, proto=0, flags=0, sock=None,
|
||||
local_addr=None):
|
||||
local_addr=None, server_hostname=None):
|
||||
raise NotImplementedError
|
||||
|
||||
def create_server(self, protocol_factory, host=None, port=None, *,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue