Message269513
| Author |
yselivanov |
| Recipients |
gvanrossum, j1m, vstinner, yselivanov |
| Date |
2016年06月29日.15:05:09 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1467212710.14.0.733442317541.issue27392@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> 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 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年06月29日 15:05:10 | yselivanov | set | recipients:
+ yselivanov, gvanrossum, vstinner, j1m |
| 2016年06月29日 15:05:10 | yselivanov | set | messageid: <1467212710.14.0.733442317541.issue27392@psf.upfronthosting.co.za> |
| 2016年06月29日 15:05:10 | yselivanov | link | issue27392 messages |
| 2016年06月29日 15:05:09 | yselivanov | create |
|