diff --git a/tcp_nat_proxy.py b/tcp_nat_proxy.py index 50d09ff..fbd3c8d 100644 --- a/tcp_nat_proxy.py +++ b/tcp_nat_proxy.py @@ -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()