summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/streams.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-05-29 14:02:07 (GMT)
committerGitHub <noreply@github.com>2018-05-29 14:02:07 (GMT)
commit9551f7719213243fd96c4f284079243773c26b3c (patch)
tree97c3977ff93c4a840ae7427a687cc2777dc76d92 /Lib/asyncio/streams.py
parent73cbe7a01a22d02dbe1ec841e8779c775cad3d08 (diff)
downloadcpython-9551f7719213243fd96c4f284079243773c26b3c.zip
cpython-9551f7719213243fd96c4f284079243773c26b3c.tar.gz
cpython-9551f7719213243fd96c4f284079243773c26b3c.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.
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):