[bitbake-devel] [PATCH] bitbake: server/xmlrpc/prserv: Increase timeout to default xmlrpc server
Jason Wessel
jason.wessel at windriver.com
Wed Aug 28 13:39:58 UTC 2013
On 08/28/2013 08:04 AM, Peter A. Bigot wrote:
> On a heavily-loaded host with local PR server the default 5 second timeout
> produces too-frequent errors:
>
> ERROR: Can NOT get PRAUTO, exception timed out
> ERROR: Function failed: package_get_auto_pr
>
> Since this error aborts the build a generous timeout seems appropriate.
>
> Signed-off-by: Peter A. Bigot <pab at pabigot.com>
> ---
> lib/bb/server/xmlrpc.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/bb/server/xmlrpc.py b/lib/bb/server/xmlrpc.py
> index 4dee5d9..bb87fd7 100644
> --- a/lib/bb/server/xmlrpc.py
> +++ b/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 = 20):
> t = BBTransport(timeout)
> s = xmlrpclib.Server("http://%s:%d/" % (host, port), transport=t, allow_none=True)
> return s, t
I would go so far as to make this 60 seconds and or have it a configurable parameter.
Previously the timeout was infinite. I have observed process creation lagging by 30-45 seconds on a server with a load average of +300. The new bitbake python code with the reduced timeout is not yet running on our edge case testing environment, but I do expect to hit the same issue.
Jason.
More information about the bitbake-devel
mailing list