diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2019-06-15 11:05:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-15 11:05:08 (GMT) |
commit | ef2152354f03a165c5e3adb53e2276934fabd50a (patch) | |
tree | 0f47ee0a5c95a179894595feca7f04dbf67d8827 /Lib/test/test_asyncio/test_sendfile.py | |
parent | 7efc526e5cfb929a79c192ac2dcf7eb78d3a4401 (diff) | |
download | cpython-ef2152354f03a165c5e3adb53e2276934fabd50a.zip cpython-ef2152354f03a165c5e3adb53e2276934fabd50a.tar.gz cpython-ef2152354f03a165c5e3adb53e2276934fabd50a.tar.bz2 |
bpo-37279: Fix asyncio sendfile support when extra data are sent in fallback mode. (GH-14075)
Diffstat (limited to 'Lib/test/test_asyncio/test_sendfile.py')
-rw-r--r-- | Lib/test/test_asyncio/test_sendfile.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_sendfile.py b/Lib/test/test_asyncio/test_sendfile.py index f148fe2..3b7f784 100644 --- a/Lib/test/test_asyncio/test_sendfile.py +++ b/Lib/test/test_asyncio/test_sendfile.py @@ -86,7 +86,8 @@ class MyProto(asyncio.Protocol): class SendfileBase: - DATA = b"SendfileBaseData" * (1024 * 8) # 128 KiB + # 128 KiB plus small unaligned to buffer chunk + DATA = b"SendfileBaseData" * (1024 * 8 + 1) # Reduce socket buffer size to test on relative small data sets. BUF_SIZE = 4 * 1024 # 4 KiB |