diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2014-02-18 17:15:06 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2014-02-18 17:15:06 (GMT) |
commit | b057c52b0175a31ee8a786a780bd0eef785820ae (patch) | |
tree | 46e53f51064937eb2abdf7904ce7050af14a5322 /Lib/asyncio/base_events.py | |
parent | fd9d374ae9e1f73e74d0e9a342dd03c7a024d570 (diff) | |
download | cpython-b057c52b0175a31ee8a786a780bd0eef785820ae.zip cpython-b057c52b0175a31ee8a786a780bd0eef785820ae.tar.gz cpython-b057c52b0175a31ee8a786a780bd0eef785820ae.tar.bz2 |
asyncio: Add support for UNIX Domain Sockets.
Diffstat (limited to 'Lib/asyncio/base_events.py')
-rw-r--r-- | Lib/asyncio/base_events.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index 3bbf6b5..b74e936 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -407,6 +407,13 @@ class BaseEventLoop(events.AbstractEventLoop): sock.setblocking(False) + transport, protocol = yield from self._create_connection_transport( + sock, protocol_factory, ssl, server_hostname) + return transport, protocol + + @tasks.coroutine + def _create_connection_transport(self, sock, protocol_factory, ssl, + server_hostname): protocol = protocol_factory() waiter = futures.Future(loop=self) if ssl: |