| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1292,8 +1292,8 @@ async def _sendfile_fallback(self, transp, file, offset, count): | |||
| 1292 | 1292 | read = await self.run_in_executor(None, file.readinto, view) | |
| 1293 | 1293 | if not read: | |
| 1294 | 1294 | return total_sent # EOF | |
| 1295 | - await proto.drain() | ||
| 1296 | 1295 | transp.write(view[:read]) | |
| 1296 | + await proto.drain() | ||
| 1297 | 1297 | total_sent += read | |
| 1298 | 1298 | finally: | |
| 1299 | 1299 | if total_sent > 0 and hasattr(file, 'seek'): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + Fix sendfile fallback implementation to drain data after writing to transport in :mod:`asyncio`. | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments