[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Return SSH_EOF in ssh_channel_read_timeout


On Friday, 13 May 2016 11:13:27 CET Игорь Коваленко wrote:
> Hi!
> there are such lines in function ssh_channel_read_timeout :
> ...
> if (channel->remote_eof && buffer_get_rest_len(stdbuf) == 0) {
>     return 0;
> }
> It seems in such a case there should be a return of SSH_EOF value.
> Is it so or I'm missing something?

No, if it returns 0 you should call ssh_channel_is_eof()


Archive administrator: postmaster@lists.cynapses.org