summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/streams.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-05-29 14:21:46 (GMT)
committerGitHub <noreply@github.com>2018-05-29 14:21:46 (GMT)
commit441afbd9c3ae3a9f1d6c985c8aa13e6205ba080b (patch)
tree62234265a57d2d0448a624f9e5e70d0d16b6bcf6 /Lib/asyncio/streams.py
parentbe5d616e5529a1388a0b451bf6a65ad5bdb70d29 (diff)
downloadcpython-441afbd9c3ae3a9f1d6c985c8aa13e6205ba080b.zip
cpython-441afbd9c3ae3a9f1d6c985c8aa13e6205ba080b.tar.gz
cpython-441afbd9c3ae3a9f1d6c985c8aa13e6205ba080b.tar.bz2
bpo-33353: test_asyncio use set_write_buffer_limits() (GH-7200)
Use transport.set_write_buffer_limits() in sendfile tests of test_asyncio to make sure that the protocol is paused after sending 4 KiB. Previously, test_sendfile_fallback_close_peer_in_the_middle_of_receiving() failed on FreeBSD if the DATA was smaller than the default limit of 64 KiB. (cherry picked from commit 9551f7719213243fd96c4f284079243773c26b3c) Co-authored-by: Victor Stinner <vstinner@redhat.com>
Diffstat (limited to 'Lib/asyncio/streams.py')
-rw-r--r--Lib/asyncio/streams.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/streams.py b/Lib/asyncio/streams.py
index 9a53ee4..d6531f8 100644
--- a/Lib/asyncio/streams.py
+++ b/Lib/asyncio/streams.py
@@ -16,7 +16,7 @@ from .log import logger
from .tasks import sleep
-_DEFAULT_LIMIT = 2 ** 16
+_DEFAULT_LIMIT = 2 ** 16 # 64 KiB
class IncompleteReadError(EOFError):