Subject: Re: RE : RE : About simple examples

Re: RE : RE : About simple examples

From: Daniel Stenberg <daniel_at_haxx.se>
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?

-- 
  / daniel.haxx.se
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2009-04-07