diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2024-05-30 09:42:30 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-31 16:56:25 +0100 |
commit | c2d2ae7b1d16c30ca9333a61a2765bdf59dddcba (patch) | |
tree | 970d34a0d94effe8159e04ca517846d4f5ba0703 /scripts/lib/devtool/sdk.py | |
parent | 5a308474c21a44e22a3cc8e23a9a41269cb51266 (diff) | |
download | poky-c2d2ae7b1d16c30ca9333a61a2765bdf59dddcba.tar.gz |
bitbake: hashserv: client: Fix changing stream modes
When switching from normal mode to stream mode, skip calling
self._set_mode() again because this will cause a recursion into the
_set_mode() function and causes problems.
Also cleanup some of the error checking during this process
This bug affected when a client would attempt to switch from one stream
mode to another, and meant that the server would get an invalid message
from the client. This would cause the server to disconnect the client,
and the client would then reconnect in normal mode which was the mode it
wanted anyway and thus it would carry on without any errors. This made
the bug not visible on the client side, but resulting in a lot of
backtrace JSON decoding exceptions in the server logs.
(Bitbake rev: 1826bc41ab3369ac40034c5eaf698748b769b881)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/sdk.py')
0 files changed, 0 insertions, 0 deletions