[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC] channels regression issue
[Thread Prev] | [Thread Next]
- Subject: [RFC] channels regression issue
- From: Heiko Thiery <heiko.thiery@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 30 Mar 2020 15:53:05 +0200
- To: libssh@xxxxxxxxxx
- Cc: peter.schneider@xxxxxxxxxxx, asn@xxxxxxxxxxxxxx, mvasko@xxxxxxxxx, Heiko Thiery <heiko.thiery@xxxxxxxxx>
It was observed that with an updated version of libssh we see a timeout in the netopeer2-cli when connecting via ssh. This timeout appears after about 20 seconds of inactivity a new cli command is executed. Since this issue was not seen with libssh 0.9.2 I started some some debug/bisect and I figured out that setting the rc variable to the len value before checking "> 0" solves the issue. Nethertheless by adding some debug information (printf) I don't have an exact explanation for this behavior. Does someone else see a possible impact or has a good explanation for that behavior? Heiko Thiery (2): channels: Fix typ of len variable channels: properly set rc to length src/channels.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.20.1
[PATCH] channels: Fix typ of len variable | Heiko Thiery <heiko.thiery@xxxxxxxxx> |
[PATCH] channels: properly set rc to length | Heiko Thiery <heiko.thiery@xxxxxxxxx> |