Subject: Re: RE : RE : About simple examples

Re: RE : RE : About simple examples

From: Daniel Stenberg <>
Date: Tue, 7 Apr 2009 00:10:54 +0200 (CEST)

On Wed, 1 Apr 2009, Jean-Louis CHARTON wrote:

> I mean that for example just do a:
> rc = libssh2_session_startup(...)
> if (rc) {
> exit some_error;
> }
> is a pretty poor illustration of how to use libssh2 library in that case
> because you can be pretty sure that most of the time rc will be EAGAIN and
> so most of the time, the sample program is going to fail.
> If EAGAIN is not handled correctly in the non blocking examples; then why
> make a difference between blocking and non blocking examples?

I agree completely with you on this.

Are you interested in writing up some patches for this, or possibly even get
commit access to the CVS repo to continue your cleanups without having to go
through anyone else?

This email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
libssh2-devel mailing list
Received on 2009-04-07