Increase buffer size to 64k to better performance for big files
This commit is contained in:
parent
5f37bf3eef
commit
bf0d359116
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ class Connection(object):
|
||||||
self.unpacker = msgpack.fallback.Unpacker() # Due memory problems of C version
|
self.unpacker = msgpack.fallback.Unpacker() # Due memory problems of C version
|
||||||
try:
|
try:
|
||||||
while not self.closed:
|
while not self.closed:
|
||||||
buff = self.sock.recv(16 * 1024)
|
buff = self.sock.recv(64 * 1024)
|
||||||
if not buff:
|
if not buff:
|
||||||
break # Connection closed
|
break # Connection closed
|
||||||
buff_len = len(buff)
|
buff_len = len(buff)
|
||||||
|
|
Loading…
Reference in a new issue