diff options
author | Guido van Rossum <guido@python.org> | 2013-10-15 13:08:03 -0700 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2013-10-15 13:08:03 -0700 |
commit | 28f2ebcbb2c375b1b8a31a4d3cf57513a0e0f697 (patch) | |
tree | 8e426709e1c3154eda3bd0499f7d7e8596c5838a /asyncio/protocols.py | |
parent | b4efc4ed3aa7339ed76ba3f634bc79ee41422557 (diff) | |
parent | 53273cb40e66116a33f2802db4a9a9fb169031f3 (diff) | |
download | trollius-28f2ebcbb2c375b1b8a31a4d3cf57513a0e0f697.tar.gz |
Merge eof_received() change.
Diffstat (limited to 'asyncio/protocols.py')
-rw-r--r-- | asyncio/protocols.py | 8 |
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. """ |