summaryrefslogtreecommitdiff
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-08-26 00:23:23 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-08-26 00:23:23 +0200
commit54c69c2fe3a6d9489407e751ea61c6c2dee1e9e5 (patch)
tree89dd71b35ff5642e26cefe25c76ab9f17b1f25dc /Lib/asyncio
parent83b9ea4942692efcb8d3eeab200c62b6a98208fb (diff)
parent52bb949fd3658957fb8719fd83183b38d9fb621c (diff)
downloadcpython-git-54c69c2fe3a6d9489407e751ea61c6c2dee1e9e5.tar.gz
(Merge 3.4) asyncio, tulip issue 203: Add _FlowControlMixin.get_write_buffer_limits()
method
Diffstat (limited to 'Lib/asyncio')
-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: