summaryrefslogtreecommitdiff
path: root/asyncio/protocols.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2013-10-15 13:08:03 -0700
committerGuido van Rossum <guido@python.org>2013-10-15 13:08:03 -0700
commit28f2ebcbb2c375b1b8a31a4d3cf57513a0e0f697 (patch)
tree8e426709e1c3154eda3bd0499f7d7e8596c5838a /asyncio/protocols.py
parentb4efc4ed3aa7339ed76ba3f634bc79ee41422557 (diff)
parent53273cb40e66116a33f2802db4a9a9fb169031f3 (diff)
downloadtrollius-28f2ebcbb2c375b1b8a31a4d3cf57513a0e0f697.tar.gz
Merge eof_received() change.
Diffstat (limited to 'asyncio/protocols.py')
-rw-r--r--asyncio/protocols.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/asyncio/protocols.py b/asyncio/protocols.py
index d76f25a..a94abbe 100644
--- a/asyncio/protocols.py
+++ b/asyncio/protocols.py
@@ -60,11 +60,9 @@ class Protocol(BaseProtocol):
def eof_received(self):
"""Called when the other end calls write_eof() or equivalent.
- The default implementation does nothing.
-
- TODO: By default close the transport. But we don't have the
- transport as an instance variable (connection_made() may not
- set it).
+ If this returns a false value (including None), the transport
+ will close itself. If it returns a true value, closing the
+ transport is up to the protocol.
"""