[issue27392] Add a server_side keyword parameter to create_connection
Yury Selivanov
report at bugs.python.org
Wed Jun 29 11:05:10 EDT 2016
Yury Selivanov added the comment:
> However, IMO, it's useful to be able to accept a connection outside of an asyncio event loop and then hand the loop the connected socket.
Looks like what you're asking for is a way to wrap existing socket object into a (transport, protocol) pair. I'm -1 to add this new semantics to loop.create_connection, as I think it will complicate it too much.
However, we can consider adding something like
loop.wrap_socket(protocol_factory, sock) -> Transport
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27392>
_______________________________________
More information about the Python-bugs-list
mailing list