summaryrefslogtreecommitdiff
path: root/Lib/asyncio/transports.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-08-26 00:22:28 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-08-26 00:22:28 +0200
commit52bb949fd3658957fb8719fd83183b38d9fb621c (patch)
treea445a45fe33a5e30f25d3cbaa213519658b6d637 /Lib/asyncio/transports.py
parentb261475a48d905f160bc1f499e90b995b0d0b6c0 (diff)
downloadcpython-git-52bb949fd3658957fb8719fd83183b38d9fb621c.tar.gz
asyncio, tulip issue 203: Add _FlowControlMixin.get_write_buffer_limits() method
Diffstat (limited to 'Lib/asyncio/transports.py')
-rw-r--r--Lib/asyncio/transports.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/asyncio/transports.py b/Lib/asyncio/transports.py
index 5f674f99d7..3caf853f9e 100644
--- a/Lib/asyncio/transports.py
+++ b/Lib/asyncio/transports.py
@@ -273,6 +273,9 @@ class _FlowControlMixin(Transport):
'protocol': self._protocol,
})
+ def get_write_buffer_limits(self):
+ return (self._low_water, self._high_water)
+
def _set_write_buffer_limits(self, high=None, low=None):
if high is None:
if low is None: