[PATCH] channels: properly set rc to length

2020-03-30 Thread Heiko Thiery
It was observed that in case the returned length of ssh_buffer_get_len was 0 the return value was not properly set to that value. This leads to timeout failures. Signed-off-by: Heiko Thiery --- src/channels.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/channels.c b/

[RFC] channels regression issue

2020-03-30 Thread Heiko Thiery
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 figur

[PATCH] channels: Fix typ of len variable

2020-03-30 Thread Heiko Thiery
The return value of ssh_buffer_get_len is uint32_t instead of size_t. Signed-off-by: Heiko Thiery --- src/channels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channels.c b/src/channels.c index d0eeddf9..20cafeac 100644 --- a/src/channels.c +++ b/src/channels.c @@ -3