Skip to content

Commit 656f8fb

Browse files
fix drain
1 parent 6eebcb9 commit 656f8fb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/asyncio/base_events.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1295,8 +1295,8 @@ async def _sendfile_fallback(self, transp, file, offset, count):
12951295
read = await self.run_in_executor(None, file.readinto, view)
12961296
if not read:
12971297
return total_sent # EOF
1298-
await proto.drain()
12991298
transp.write(view[:read])
1299+
await proto.drain()
13001300
total_sent += read
13011301
finally:
13021302
if total_sent > 0 and hasattr(file, 'seek'):

Tools/tsan/suppressions_free_threading.txt

+2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
# These warnings trigger directly in a CPython function.
1414

1515
race_top:assign_version_tag
16+
race_top:_multiprocessing_SemLock_acquire_impl
1617
race_top:_Py_slot_tp_getattr_hook
1718
race_top:dump_traceback
1819
race_top:fatal_error
20+
race_top:_multiprocessing_SemLock_release_impl
1921
race_top:_PyFrame_GetCode
2022
race_top:_PyFrame_Initialize
2123
race_top:_PyObject_TryGetInstanceAttribute

0 commit comments

Comments
 (0)