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

Re: getting channel errors


One ssh_session can be used in only one thread, that's the current
rule. :) I use ssh_select to operate multiple channels in one thread and
I am good with this approach.


On Thu, 2010-02-11 at 16:00 +0300, Stephan Kountso wrote:
> Many of channel_* functions return SSH_ERROR on error. But there is
> exists only one function to get the reason of any errors:
> ssh_get_error with only argument "ssh session", not channel.
> So, my questions are:
> 1) how to handle ssh channel errors?
> 2) if also with ssh_get_error, then how about thread-safety? Multiply
> threads on multiply channels cause corruption on ssh_get_error.

Re: getting channel errorsStephan Kountso <steplg@xxxxxxxxx>
Re: getting channel errorsAris Adamantiadis <aris@xxxxxxxxxxxx>
getting channel errorsStephan Kountso <steplg@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org