Skip to content

Commit 4c5e8c1

Browse files
fix drain
1 parent 6eebcb9 commit 4c5e8c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/asyncio/base_events.py

Lines changed: 1 addition & 1 deletion
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'):

0 commit comments

Comments
 (0)