HomePhabricator

channels: Avoid returning SSH_AGAIN from ssh_channel_poll_timeout()

Authored by Jakuje on Apr 16 2020, 11:13 AM.

Description

channels: Avoid returning SSH_AGAIN from ssh_channel_poll_timeout()

This addresses a regression introduced in 3bad0607, partially fixed in 022409e9,
but the function was still able to return SSH_AGAIN, which was not expected by
callers.

Based on discussion in [1] and [2]

[1] https://gitlab.com/libssh/libssh-mirror/-/merge_requests/101
[2] https://www.libssh.org/archive/libssh/2020-03/0000029.html

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>

Details

Committed
JakujeApr 20 2020, 2:14 PM
Parents
rLIBSSHfe0fcbbc67e3: channels: reformat
Branches
Unknown
Tags
Unknown