summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/proactor_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-28 23:36:35 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-01-28 23:36:35 (GMT)
commitf07801bb17f8089dc8b8a4d2beafba7c497af900 (patch)
tree96eef20c5dc37b0d324ac8572a15bf90017543ac /Lib/asyncio/proactor_events.py
parentb507cbaac5921023c17068b616efdbbecbd89920 (diff)
downloadcpython-f07801bb17f8089dc8b8a4d2beafba7c497af900.zip
cpython-f07801bb17f8089dc8b8a4d2beafba7c497af900.tar.gz
cpython-f07801bb17f8089dc8b8a4d2beafba7c497af900.tar.bz2
asyncio: SSL transports now clear their reference to the waiter
* Rephrase also the comment explaining why the waiter is not awaken immediatly. * SSLProtocol.eof_received() doesn't instanciate ConnectionResetError exception directly, it will be done by Future.set_exception(). The exception is not used if the waiter was cancelled or if there is no waiter.
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 ed17062..0f533a5 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._loop.call_soon(self._protocol.connection_made, self)
if waiter is not None:
- # wait until protocol.connection_made() has been called
+ # only wake up the waiter when connection_made() has been called
self._loop.call_soon(waiter._set_result_unless_cancelled, None)
def __repr__(self):