summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorKojo Idrissa <kojoidrissa@users.noreply.github.com>2017-07-02 02:48:07 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-07-02 02:48:07 (GMT)
commit03af4282423b1c287a194664f90496cfc9cf20c7 (patch)
tree87dea56e521b8710581c8e5cf96b793b0bf0925f /Doc/library
parent3024c0529077f5cff0b32dc84b5923c8fba99a87 (diff)
downloadcpython-03af4282423b1c287a194664f90496cfc9cf20c7.zip
cpython-03af4282423b1c287a194664f90496cfc9cf20c7.tar.gz
cpython-03af4282423b1c287a194664f90496cfc9cf20c7.tar.bz2
[3.6] bpo-29933: Improve set_write_buffer_limits description (GH-2262) (GH-2532)
Improve the description of the high and low parameters for set_write_buffer_limits. Also fixed a small grammatical issue. (cherry picked from commit 5200a7c7f9ea65a96330c5f276f4acc6ec70854e)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/asyncio-protocol.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/Doc/library/asyncio-protocol.rst b/Doc/library/asyncio-protocol.rst
index 3f55506..dfe37c2 100644
--- a/Doc/library/asyncio-protocol.rst
+++ b/Doc/library/asyncio-protocol.rst
@@ -163,11 +163,17 @@ WriteTransport
Set the *high*- and *low*-water limits for write flow control.
- These two values control when call the protocol's
+ These two values (measured in number of
+ bytes) control when the protocol's
:meth:`pause_writing` and :meth:`resume_writing` methods are called.
If specified, the low-water limit must be less than or equal to the
high-water limit. Neither *high* nor *low* can be negative.
+ :meth:`pause_writing` is called when the buffer size becomes greater
+ than or equal to the *high* value. If writing has been paused,
+ :meth:`resume_writing` is called when the buffer size becomes less
+ than or equal to the *low* value.
+
The defaults are implementation-specific. If only the
high-water limit is given, the low-water limit defaults to an
implementation-specific value less than or equal to the