diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2024-04-12 14:28:16 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-04-16 07:33:19 +0100 |
commit | e0f79072dcd75ad5594c502dcc3478f6210dbaf0 (patch) | |
tree | 4738fdb04b47d18c08f25bbb4b93c6c9eb7c4abf /meta | |
parent | 2ecd97fa59fe6b023464b546ad153e6e7c137cf2 (diff) | |
download | poky-e0f79072dcd75ad5594c502dcc3478f6210dbaf0.tar.gz |
bitbake: hashserv: client: Fix mode state errors
Careful reading of the code can contrive cases where poorly timed
ConnectionError's will result in the client mode being incorrectly reset
to MODE_NORMAL when it should actual be a stream mode for the current
command. Fix this by no longer attempting to restore the mode when the
connection is setup. Instead, attempt to set the stream mode inside the
send wrapper for the stream data, which means that it should always end
up in the correct mode before continuing.
Also, factor out the transition to normal mode into a invoke() override
so it doesn't need to be specified over and over again.
(Bitbake rev: 0cd276fd98eeca463518d4a42675fffb18d6b3de)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
0 files changed, 0 insertions, 0 deletions