archive
/
tcp-nat-proxy
Archived
1
Fork 0

Drain buffer after read

This commit is contained in:
Jake Howard 2019-01-01 21:30:55 +00:00
parent b7e7e868c9
commit d9a353e505
Signed by: jake
GPG Key ID: 57AFB45680EDD477
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ async def pipe(reader, writer):
try:
while not reader.at_eof():
writer.write(await reader.read(BUFFER_SIZE))
await writer.drain()
finally:
writer.close()