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 /bitbake/lib | |
parent | 432294856418fc40e749552106034b8e14fa5c81 (diff) | |
download | 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>
Diffstat (limited to 'bitbake/lib')
-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 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 | ||
81 | def _create_server(host, port, timeout = 5): | 81 | def _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 |