aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-27 22:29:17 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-27 22:53:44 +0100
commitfa85a8263971c25e67fa3b421c686a90e46acd87 (patch)
treec9a0e4d60e4432b9b29a0c574ec42373955f97ef /lib
parente7c387c2e2fb2cc3ca1dc9d2029362909c326d72 (diff)
downloadbitbake-fa85a8263971c25e67fa3b421c686a90e46acd87.tar.gz
server/process: Account for xmlrpc connections
UI control can happen via the xmlrpc connection. Account for this when timing out UI connections. This was causing issues for toaster on systems where it couldn't parse the metadata within the timeout. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/server/process.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index 5a87f0820..b66fbe0ac 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -202,7 +202,7 @@ class ProcessServer(multiprocessing.Process):
# If we don't see a UI connection within maxuiwait, its unlikely we're going to see
# one. We have had issue with processes hanging indefinitely so timing out UI-less
# servers is useful.
- if not self.hadanyui and not self.timeout and (self.lastui + self.maxuiwait) < time.time():
+ if not self.hadanyui and not self.xmlrpc and not self.timeout and (self.lastui + self.maxuiwait) < time.time():
print("No UI connection within max timeout, exiting to avoid infinite loop.")
self.quit = True