bitbake: 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 10:29:46 +0000 (11:29 +0100)
commitb568beea857b05cfa008b5dafdae6497de24f8b2
tree16773467182fef51dae28332bf26dcd64b293210
parent6980c1c062720e1d4a6fb0edbe91bef61d736c4e
bitbake: 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.

(Bitbake rev: 8c01cff94787abbb64fbdf0c16cd63f8f97a7e03)

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