[Python-checkins] peps: Add pause/resume_writing, discard_output.
guido.van.rossum
python-checkins at python.org
Wed May 22 22:22:57 CEST 2013
http://hg.python.org/peps/rev/37cf2567651b
changeset: 4902:37cf2567651b
user: Guido van Rossum <guido at python.org>
date: Wed May 22 13:22:52 2013 -0700
summary:
Add pause/resume_writing, discard_output.
files:
pep-3156.txt | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/pep-3156.txt b/pep-3156.txt
--- a/pep-3156.txt
+++ b/pep-3156.txt
@@ -1019,6 +1019,16 @@
- ``resume()``. Restart delivery of data to the protocol via
``data_received()``.
+- ``pause_writing()``. Suspend sending data to the network until a
+ subsequent ``resume_writing()`` call. Between ``pause_writing()``
+ and ``resume_writing()`` the transport's ``write()`` method will
+ just be accumulating data in an internal buffer.
+
+- ``resume_writing()``. Restart sending data to the network.
+
+- ``discard_output()``. Discard all data buffered by ``write()`` but
+ not yet sent to the network.
+
- ``close()``. Sever the connection with the entity at the other end.
Any data buffered by ``write()`` will (eventually) be transferred
before the connection is actually closed. The protocol's
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list