mirror of
https://github.com/python/cpython.git
synced 2025-08-15 22:30:42 +00:00
bpo-37279: Fix asyncio sendfile support when extra data are sent in fallback mode. (GH-14075)
(cherry picked from commit ef2152354f
)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
This commit is contained in:
parent
3fde750cc4
commit
bb07321c6a
3 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue