Skip to content

Commit 1a15c01

Browse files
author
Paul Sokolovsky
committed
webrepl_cli.py: put_file(): Send data in bigger chunks.
Bigger chunks means filler network packets, which means higher throughput and few packets for the same file size => less chance to overload buggy network drivers.
1 parent 8135bb4 commit 1a15c01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webrepl_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def put_file(ws, local_file, remote_file):
9292
assert read_resp(ws) == 0
9393
with open(local_file, "rb") as f:
9494
while True:
95-
buf = f.read(256)
95+
buf = f.read(1024)
9696
if not buf:
9797
break
9898
ws.write(buf)

0 commit comments

Comments
 (0)