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

Re: ssh_channel_open_session() can return SSH_AGAIN when ssh_is_blocking() returns 1


On Saturday 14 September 2013 15:00:36 Dustin Oprea wrote:
> Even though I'm exclusively blocking, I get an SSH_AGAIN, sometimes, when I
> call ssh_channel_open_session().
> 
> ssh_channel_open_session() ->
> channel_open() ->
> ssh_handle_packets_termination()
> 
> handle_packets_termination() is responsible for this.
> 
> 
> Is libssh overloading SSH_AGAIN to mean try-again under both blocking and
> non-blocking modes? Should I check for this response from every call in the
> event of a timeout, under both blocking and non-blocking modes?

It should be fixed. We used it with the wrong timeout handling value in 
several cases.


	-- andreas

-- 
Andreas Schneider                   GPG-ID: F33E3FC6
www.cryptomilk.org                asn@xxxxxxxxxxxxxx


Archive administrator: postmaster@lists.cynapses.org