summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/transports.py
diff options
context:
space:
mode:
authorEmiya <importz750@gmail.com>2022-02-01 16:05:02 (GMT)
committerGitHub <noreply@github.com>2022-02-01 16:05:02 (GMT)
commit64568acbd88a88d54ac9b8215447f88280448dd5 (patch)
treeccfff8b06e1dd8d415a9d533d4072163f4aed9c2 /Lib/asyncio/transports.py
parent0e4bef7a7f6f25a6f39755778c73e7026901611f (diff)
downloadcpython-64568acbd88a88d54ac9b8215447f88280448dd5.zip
cpython-64568acbd88a88d54ac9b8215447f88280448dd5.tar.gz
cpython-64568acbd88a88d54ac9b8215447f88280448dd5.tar.bz2
bpo-46487: Add `get_write_buffer_limits` to Write and _SSLProtocol transports (GH-30958)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Diffstat (limited to 'Lib/asyncio/transports.py')
-rw-r--r--Lib/asyncio/transports.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/asyncio/transports.py b/Lib/asyncio/transports.py
index 45e155c..73b1fa2 100644
--- a/Lib/asyncio/transports.py
+++ b/Lib/asyncio/transports.py
@@ -99,6 +99,12 @@ class WriteTransport(BaseTransport):
"""Return the current size of the write buffer."""
raise NotImplementedError
+ def get_write_buffer_limits(self):
+ """Get the high and low watermarks for write flow control.
+ Return a tuple (low, high) where low and high are
+ positive number of bytes."""
+ raise NotImplementedError
+
def write(self, data):
"""Write some data bytes to the transport.