aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-07-07 17:26:54 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-07-07 17:26:54 +0200
commit1a870c913238e6e2178283b1d69e9be9203473f2 (patch)
treea433b73f12bc92783ecf57c0ad77f4a17126c712 /Lib/asyncio/proactor_events.py
parentMerge heads (diff)
downloadcpython-1a870c913238e6e2178283b1d69e9be9203473f2.tar.gz
cpython-1a870c913238e6e2178283b1d69e9be9203473f2.tar.bz2
cpython-1a870c913238e6e2178283b1d69e9be9203473f2.zip
asyncio: sync with Tulip
- Tulip issue #181: Faster create_connection(). Call directly waiter.set_result() in the constructor of _ProactorBasePipeTransport and _SelectorSocketTransport, instead of using of delaying the call with call_soon(). - Cleanup iscoroutine()
Diffstat (limited to 'Lib/asyncio/proactor_events.py')
-rw-r--r--Lib/asyncio/proactor_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/proactor_events.py b/Lib/asyncio/proactor_events.py
index a80876f366a..23545c9ee9d 100644
--- a/Lib/asyncio/proactor_events.py
+++ b/Lib/asyncio/proactor_events.py
@@ -38,7 +38,7 @@ class _ProactorBasePipeTransport(transports._FlowControlMixin,
self._server.attach(self)
self._loop.call_soon(self._protocol.connection_made, self)
if waiter is not None:
- self._loop.call_soon(waiter._set_result_unless_cancelled, None)
+ waiter.set_result(None)
def _set_extra(self, sock):
self._extra['pipe'] = sock