diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/SSLServer.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/SSLServer.py b/src/lib/SSLServer.py index c3ecbdea5..fac332f14 100644 --- a/src/lib/SSLServer.py +++ b/src/lib/SSLServer.py @@ -203,6 +203,11 @@ class XMLRPCRequestHandler (SimpleXMLRPCServer.SimpleXMLRPCRequestHandler): size_remaining = int(self.headers["content-length"]) L = [] while size_remaining: + try: + select.select([self.rfile.fileno()], [], [], 3) + except select.error: + print "got select timeout" + raise chunk_size = min(size_remaining, max_chunk_size) L.append(self.rfile.read(chunk_size)) size_remaining -= len(L[-1]) |