change received byte size
This commit is contained in:
parent
a564b91a1e
commit
e3fa909422
1 changed files with 1 additions and 1 deletions
2
utils.py
2
utils.py
|
@ -32,7 +32,7 @@ class RobotClient:
|
||||||
def _recv_full_json(self) -> dict:
|
def _recv_full_json(self) -> dict:
|
||||||
buffer = ""
|
buffer = ""
|
||||||
while True:
|
while True:
|
||||||
chunk = self.sock.recv(1024).decode("utf-8")
|
chunk = self.sock.recv(4096).decode("utf-8")
|
||||||
if not chunk:
|
if not chunk:
|
||||||
raise ConnectionError("Connection closed")
|
raise ConnectionError("Connection closed")
|
||||||
buffer += chunk
|
buffer += chunk
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue