diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-30 17:41:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-30 17:42:39 +0100 |
commit | cb939416b7df27e7410f8084f3622c021e616906 (patch) | |
tree | 2d413899d5dd77389e6af795e6b1c8f7e78d6864 | |
parent | 432294856418fc40e749552106034b8e14fa5c81 (diff) | |
download | ast2050-yocto-poky-cb939416b7df27e7410f8084f3622c021e616906.zip ast2050-yocto-poky-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>
-rw-r--r-- | bitbake/lib/bb/server/xmlrpc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/server/xmlrpc.py b/bitbake/lib/bb/server/xmlrpc.py index 4dee5d9..641e15e 100644 --- a/bitbake/lib/bb/server/xmlrpc.py +++ b/bitbake/lib/bb/server/xmlrpc.py @@ -78,7 +78,7 @@ class BBTransport(xmlrpclib.Transport): h.putheader("Bitbake-token", self.connection_token) xmlrpclib.Transport.send_content(self, h, body) -def _create_server(host, port, timeout = 5): +def _create_server(host, port, timeout = 60): t = BBTransport(timeout) s = xmlrpclib.Server("http://%s:%d/" % (host, port), transport=t, allow_none=True) return s, t |