Increase buffer size to 64k to better performance for big files

This commit is contained in:
shortcutme 2017-10-03 14:31:39 +02:00
parent 5f37bf3eef
commit bf0d359116
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -156,7 +156,7 @@ class Connection(object):
self.unpacker = msgpack.fallback.Unpacker() # Due memory problems of C version
try:
while not self.closed:
buff = self.sock.recv(16 * 1024)
buff = self.sock.recv(64 * 1024)
if not buff:
break # Connection closed
buff_len = len(buff)