]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
server/xmlrpc/prserv: Add sane timeout to default xmlrpc server
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Aug 2013 12:03:10 +0000 (12:03 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 26 Aug 2013 09:38:43 +0000 (10:38 +0100)
commit8c01cff94787abbb64fbdf0c16cd63f8f97a7e03
treedc6c2d5efed6f3693ff0ebcdcea2924553cb12ad
parentc5c8f33ca4b81877a0115887849881001b745bf0
server/xmlrpc/prserv: Add sane timeout to default xmlrpc server

The standard python socket connect has long timouts which make sense for remote
connections but not local things like the PR Service. This adds a timeout
parameter to the common xmlrpc server creation function and sets it to a more
reasonable 5 seconds.

Making the PR server instantly exit is a good way to test the effect of this
on bitbake.

We can remove the bodged timeout in the PRServer terminate function which
has the side effect of affecting global scope.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/server/xmlrpc.py
lib/prserv/serv.py