Browse Source

Increases network buffer/read-size to a typical amount of 4096 bytes.

Signed-off-by: Stefan Laudemann <thisco@zitmail.uni-paderborn.de>
Stefan Laudemann 9 years ago
parent
commit
4e93c77221
1 changed files with 2 additions and 1 deletions
  1. 2 1
      server.py

+ 2 - 1
server.py

@@ -8,6 +8,7 @@ import daemon.pidlockfile
 import traceback
 import os
 
+
 BUFFER_SIZE = 4096
 
 def myrandom(length):
@@ -15,7 +16,7 @@ def myrandom(length):
 
 def serve(port, bindTo, path_report_store=None):
 	assert path_report_store != None
- 
+
 	s = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
 	s.settimeout(30.0)
 	s.bind((bindTo, port))