From 5a63c64e3d0823a1960004a199850ccc541db895 Mon Sep 17 00:00:00 2001 From: James Stronz Date: Wed, 26 Jun 2019 01:36:46 -0500 Subject: [PATCH] Increased chunk size to improve multi-client response time and throughput of large data #329 --- rpyc/core/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpyc/core/stream.py b/rpyc/core/stream.py index 524f267c..88a2bda3 100644 --- a/rpyc/core/stream.py +++ b/rpyc/core/stream.py @@ -111,7 +111,7 @@ class SocketStream(Stream): """A stream over a socket""" __slots__ = ("sock",) - MAX_IO_CHUNK = 8000 + MAX_IO_CHUNK = 64000 # read/write chunk is 64KB, too large of a value will degrade response for other clients def __init__(self, sock): self.sock = sock