File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -93,13 +93,10 @@ async def wait_closed(self):
9393
9494class SendfileBase :
9595
96- # 256 KiB plus small unaligned to buffer chunk
97- # Newer versions of Windows seems to have increased its internal
98- # buffer and tries to send as much of the data as it can as it
99- # has some form of buffering for this which is less than 256KiB
100- # on newer server versions and Windows 11.
101- # So DATA should be larger than 256 KiB to make this test reliable.
102- DATA = b"x" * (1024 * 256 + 1 )
96+ # Linux >= 6.10 seems buffering up to 17 pages of data.
97+ # So DATA should be large enough to make this test reliable even with a
98+ # 64 KiB page configuration.
99+ DATA = b"x" * (1024 * 17 * 64 + 1 )
103100 # Reduce socket buffer size to test on relative small data sets.
104101 BUF_SIZE = 4 * 1024 # 4 KiB
105102
You can’t perform that action at this time.
0 commit comments