[oe-commits] [bitbake] branch master-next updated: server/process: Ensure socket has a timeout set

git at git.openembedded.org git at git.openembedded.org
Fri Dec 14 18:19:53 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

The following commit(s) were added to refs/heads/master-next by this push:
     new f02114c  server/process: Ensure socket has a timeout set
f02114c is described below

commit f02114cb70e8f6f1d32e19c02b758fe0aadecd19
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Fri Dec 14 17:49:16 2018 +0000

    server/process: Ensure socket has a timeout set
    
    We're seeing hangs in oe-selftest where server startup and shutdown are
    racing. The assumption was a connect would timeout however no timeout is
    set which can leave processes hanging. Set a short timeout for
    the connection to avoid this.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/server/process.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index 1a6a826..f7d0726 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -474,6 +474,8 @@ def connectProcessServer(sockname, featureset):
     readfd = writefd = readfd1 = writefd1 = readfd2 = writefd2 = None
     eq = command_chan_recv = command_chan = None
 
+    sock.settimeout(2)
+
     try:
         try:
             os.chdir(os.path.dirname(sockname))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list