[bitbake-devel] Server timeout after codeparser.py: support deeply nested tokens

Gerson Fernando Budke nandojve at gmail.com
Fri Dec 1 20:07:12 UTC 2017


Could this be the final solution?

ping!!

2017-10-09 9:49 GMT-03:00 Gerson Fernando Budke <nandojve at gmail.com>:

> I've been facing the "WARNING: Timeout while attempting to communicate
> with bitbake server"
> after the patch "codeparser.py: support deeply nested tokens" has been
> added in morty branch.
> As I'm using cache the problem is recorrent.
>
> I've been suspected that 'self.process_tokens(tokens)' is more time
> consuming:
>
> -        for token in tokens:
> -            self.process_tokens(token)
> +        self.process_tokens(tokens)
>
> So, I fixed the server timeout value, as follow,
>
> From 26e253c9f1d8767cad0ddc2fd556314c726d725d Mon Sep 17 00:00:00 2001
> From: Gerson Fernando Budke <gerson.budke at intelbras.com.br>
> Date: Mon, 9 Oct 2017 08:25:08 -0300
> Subject: [PATCH] process.py: Update timeout from 5 to 30s
>
> As codeparser support deeply nested tokens and this operation is more
> time consuming the server timeout should be increased to avoid errors
> while attempting to communicate with bitbake server. This increase
> the value from 5 to 30 seconds.
>
> Signed-off-by: Gerson Fernando Budke <gerson.budke at intelbras.com.br>
> ---
>  lib/bb/server/process.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
> index 982fcf7..bcd40bf 100644
> --- a/lib/bb/server/process.py
> +++ b/lib/bb/server/process.py
> @@ -54,7 +54,7 @@ class ServerCommunicator():
>              # don't let the user ctrl-c while we're waiting for a response
>              try:
>                  for idx in range(0,4): # 0, 1, 2, 3
> -                    if self.connection.poll(5):
> +                    if self.connection.poll(30):
>                          return self.connection.recv()
>                      else:
>                          bb.warn("Timeout while attempting to communicate
> with bitbake server")
> --
> 2.7.4
>
> Could this be the final solution?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20171201/89795f23/attachment-0002.html>


More information about the bitbake-devel mailing list