From b1f9be531d04672047cadd15bbf0585af450367d Mon Sep 17 00:00:00 2001 From: Samuel Sadok Date: Sat, 21 Apr 2018 20:22:30 -0700 Subject: [PATCH] request more bytes at a time when reading JSON --- tools/odrive/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/odrive/protocol.py b/tools/odrive/protocol.py index 9ea1dd88..d8c49f3a 100644 --- a/tools/odrive/protocol.py +++ b/tools/odrive/protocol.py @@ -319,7 +319,7 @@ class Channel(PacketSink): # TODO: handle device that could (maliciously) send infinite stream buffer = bytes() while True: - chunk_length = 64 + chunk_length = 512 chunk = self.remote_endpoint_operation(endpoint_id, struct.pack("