[issue27392] Add a server_side keyword parameter to create_connection

Yury Selivanov report at bugs.python.org
Sat Jul 9 14:40:43 EDT 2016


Yury Selivanov added the comment:

> wrap_socket implies that it's for wrapping client or server sockets, but it's not. It's only for handling server sockets. Also, I prefer a name that reflects goal, not mechanism.

> I think the name should be discussed over here: https://bugs.python.org/issue27392.

Why can't `wrap_socket` be used for wrapping client sockets?  I think we can refactor asyncio to use it in 'create_connection', and maybe to accept new connections.

To my ear, 'asyncio.handle_connection' implies that asyncio will "handle" the connection, i.e. that asyncio itself would do more than just wrapping the socket and attaching a protocol instance.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27392>
_______________________________________


More information about the Python-bugs-list mailing list