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 <rep...@bugs.python.org>
<http://bugs.python.org/issue27392>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to