<div dir="ltr"><span style="color:rgb(136,136,136);font-size:12.8px">Could this be the final solution?</span><br><div><span style="color:rgb(136,136,136);font-size:12.8px"><br></span></div><div><span style="color:rgb(136,136,136);font-size:12.8px">ping!!</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-10-09 9:49 GMT-03:00 Gerson Fernando Budke <span dir="ltr">&lt;<a href="mailto:nandojve@gmail.com" target="_blank">nandojve@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I&#39;ve been facing the &quot;WARNING: Timeout while attempting to communicate with bitbake server&quot;</div><div>after the patch &quot;codeparser.py: support deeply nested tokens&quot; has been added in morty branch.</div><div>As I&#39;m using cache the problem is recorrent.</div><div><br></div><div>I&#39;ve been suspected that &#39;self.process_tokens(tokens)&#39; is more time consuming:</div><div><br></div><div>-        for token in tokens:</div><div>-            self.process_tokens(token)</div><div>+        self.process_tokens(tokens)</div><div><br></div><div>So, I fixed the server timeout value, as follow, </div></div><div><br></div><div><div>From 26e253c9f1d8767cad0ddc2fd55631<wbr>4c726d725d Mon Sep 17 00:00:00 2001</div><div>From: Gerson Fernando Budke &lt;<a href="mailto:gerson.budke@intelbras.com.br" target="_blank">gerson.budke@intelbras.com.br</a><wbr>&gt;</div><div>Date: Mon, 9 Oct 2017 08:25:08 -0300</div><div>Subject: [PATCH] process.py: Update timeout from 5 to 30s</div><div><br></div><div>As codeparser support deeply nested tokens and this operation is more</div><div>time consuming the server timeout should be increased to avoid errors</div><div>while attempting to communicate with bitbake server. This increase</div><div>the value from 5 to 30 seconds.</div><div><br></div><div>Signed-off-by: Gerson Fernando Budke &lt;<a href="mailto:gerson.budke@intelbras.com.br" target="_blank">gerson.budke@intelbras.com.br</a><wbr>&gt;</div><div>---</div><div> lib/bb/server/process.py | 2 +-</div><div> 1 file changed, 1 insertion(+), 1 deletion(-)</div><div><br></div><div>diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py</div><div>index 982fcf7..bcd40bf 100644</div><div>--- a/lib/bb/server/process.py</div><div>+++ b/lib/bb/server/process.py</div><div>@@ -54,7 +54,7 @@ class ServerCommunicator():</div><div>             # don&#39;t let the user ctrl-c while we&#39;re waiting for a response</div><div>             try:</div><div>                 for idx in range(0,4): # 0, 1, 2, 3</div><div>-                    if self.connection.poll(5):</div><div>+                    if self.connection.poll(30):</div><div>                         return self.connection.recv()</div><div>                     else:</div><div>                         bb.warn(&quot;Timeout while attempting to communicate with bitbake server&quot;)</div><span class="HOEnZb"><font color="#888888"><div>-- </div><div>2.7.4</div></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Could this be the final solution?<br></div></font></span></div>
</blockquote></div><br></div>