File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,13 @@ async def wait_closed(self):
87
87
88
88
class SendfileBase :
89
89
90
- # 128 KiB plus small unaligned to buffer chunk
91
- DATA = b"SendfileBaseData" * (1024 * 8 + 1 )
92
-
90
+ # 256 KiB plus small unaligned to buffer chunk
91
+ # Newer versions of Windows seems to have increased its internal
92
+ # buffer and tries to send as much of the data as it can as it
93
+ # has some form of buffering for this which is less than 256KiB
94
+ # on newer server versions and Windows 11.
95
+ # So DATA should be larger than 256 KiB to make this test reliable.
96
+ DATA = b"x" * (1024 * 256 + 1 )
93
97
# Reduce socket buffer size to test on relative small data sets.
94
98
BUF_SIZE = 4 * 1024 # 4 KiB
95
99
@@ -451,8 +455,6 @@ def test_sendfile_ssl_close_peer_after_receiving(self):
451
455
# themselves).
452
456
@unittest .skipIf (sys .platform .startswith ('sunos' ),
453
457
"Doesn't work on Solaris" )
454
- @unittest .skipIf (sys .platform == "win32" ,
455
- "It is flaky on Windows and needs to be fixed" ) # TODO: bpo-41682
456
458
def test_sendfile_close_peer_in_the_middle_of_receiving (self ):
457
459
srv_proto , cli_proto = self .prepare_sendfile (close_after = 1024 )
458
460
with self .assertRaises (ConnectionError ):
You can’t perform that action at this time.
0 commit comments