summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-30 17:41:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-30 17:42:39 +0100
commitcb939416b7df27e7410f8084f3622c021e616906 (patch)
tree2d413899d5dd77389e6af795e6b1c8f7e78d6864 /bitbake/lib
parent432294856418fc40e749552106034b8e14fa5c81 (diff)
downloadpoky-cb939416b7df27e7410f8084f3622c021e616906.tar.gz
bitbake: server/xmlrpc: Increase timeout to 60s
This is a better value that the earlier infinite timeout yet still allows for servers with high loads. It does mean the bitbake process can hang at exit for the timeout period but that should never happen and only happened for me in some test cases which wouldn't happen in normal use. (Bitbake rev: ab8d926b9bc27c58011e7db9327e031ac76ba34b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/server/xmlrpc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/server/xmlrpc.py b/bitbake/lib/bb/server/xmlrpc.py
index 4dee5d9fea..641e15e833 100644
--- a/bitbake/lib/bb/server/xmlrpc.py
+++ b/bitbake/lib/bb/server/xmlrpc.py
@@ -78,7 +78,7 @@ class BBTransport(xmlrpclib.Transport):
78 h.putheader("Bitbake-token", self.connection_token) 78 h.putheader("Bitbake-token", self.connection_token)
79 xmlrpclib.Transport.send_content(self, h, body) 79 xmlrpclib.Transport.send_content(self, h, body)
80 80
81def _create_server(host, port, timeout = 5): 81def _create_server(host, port, timeout = 60):
82 t = BBTransport(timeout) 82 t = BBTransport(timeout)
83 s = xmlrpclib.Server("http://%s:%d/" % (host, port), transport=t, allow_none=True) 83 s = xmlrpclib.Server("http://%s:%d/" % (host, port), transport=t, allow_none=True)
84 return s, t 84 return s, t