russh doesn't have the libsodium compilation issues on Windows that
ssh2 - migrate to it.
Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
This could probably be generalized to all messages, but apart from
this one, I think it would only make sense to also handle this for
cases where the user pastes 1.5GiB of plaintext into MsgConsole, but
then stdin is clogged up and there's no signals, so CTRL+A would wait
for its turn anyway..
Signed-off-by: Konrad Dybcio <konradybcio@kernel.org>
These can apparently be handled too slow (because the stdin handler
thread takes its sweet time to spin up?), and receiving e.g. the
hello message ("Starting cdba server") and some warning (like
"cdba-server: Please switch to yaml config for ftdi_gpio configuration")
separated with a single LF char on the server side ends up with a
janky printout.
This is not ideal, but I suppose acking of the server status updates
could be introduced in a future update..
Signed-off-by: Konrad Dybcio <konradybcio@kernel.org>
Replace .unwrap() with the question-mark returns. The main function can
only choke on the std::io::Error, so it's simple to return this kind of
errors.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>