diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-24 16:34:32 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-28 17:03:14 +0000 |
commit | 3541f019a505d18263fad0b46b88d470e3fd9d62 (patch) | |
tree | 3ef45f643459ac593358d4ab50dc3316bc6a832f /.gitignore | |
parent | 563a74d52270ebe0db5bec5802a1c820ab88a999 (diff) | |
download | poky-3541f019a505d18263fad0b46b88d470e3fd9d62.tar.gz |
bitbake: process: Rewrite multiple connection handling
If the bitbake server recieved multiple connections, it currently closes
ones it can't handle (while its dealing with another). This is rather
antisocial behaviour which causes clients to quickly run through their
retries and abort.
Instead, queue any other connections until the current one is closed. This
way the client can decide when it wants to stop waiting for the server. If the
client is gone by the time we handle it, we handle that gracefully.
This also fixes a number of bugs in the connection handling where connections
which did drop early were badly handled causing tracebacks in the logs.
Also, handle queue incomming connections in a loop to ensure that the main
client handling doesn't starve that piece of the system.
This code was stress tested by running 50 connection attempts in parallel at
once, ensuring the code correctly handled them.
(Bitbake rev: 220193dc38c4e78cb7cf36132a3a5b499a35bc8a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions