Subject: libssh2 master face475... changed all return EAGAIN to return the variable instead

libssh2 master face475... changed all return EAGAIN to return the variable instead

From: <libssh2_at_git.stuge.se>
Date: 24 Aug 2009 22:56:48 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "C library for writing portable SSH2 clients".

The branch, master has been updated
       via face4750ca78fc69f667f82e2baaa5d233c35e6c (commit)
       via a1365916c74c06c8adbcf6c9502a3899ee8beb07 (commit)
       via f64a84a90968de6366300578d28f85b747d35bf0 (commit)
      from fba3877ed8013a44c5e8abb9fed4bad4d2075748 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit face4750ca78fc69f667f82e2baaa5d233c35e6c
Author: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue Aug 25 00:54:47 2009 +0200

    changed all return EAGAIN to return the variable instead
    
    I made this change just to easier grep for "return .*EAGAIN" cases
    as they should be very rare or done wrongly. Already worked to find
    a flaw, marked with "TODO FIXME THIS IS WRONG" in channel.c. I also
    fixed a few cases to become more general returns now when we have
    more unified return codes internally.

commit a1365916c74c06c8adbcf6c9502a3899ee8beb07
Author: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue Aug 25 00:25:08 2009 +0200

    _libssh2_channel_write() must not invent EAGAIN situations
    
    it is important that only the transport layer can generate EAGAIN
    error codes so that we limit where we need to set direction bits
    and more. When the local window is too small to send data we simply
    stop trying to send and (risk) returning zero in
    _libssh2_channel_write()

commit f64a84a90968de6366300578d28f85b747d35bf0
Author: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue Aug 25 00:23:34 2009 +0200

    error code cleanup

-----------------------------------------------------------------------

Summary of changes:
 src/channel.c | 91 +++++++++++++++++++++++++------------------------------
 src/kex.c | 40 ++++++++++++------------
 src/packet.c | 32 +++++++++----------
 src/publickey.c | 25 ++++++++-------
 src/session.c | 64 ++++++++++++--------------------------
 src/sftp.c | 86 ++++++++++++++++++++++++++--------------------------
 src/transport.c | 10 ++++--
 src/userauth.c | 24 +++++++-------
 8 files changed, 170 insertions(+), 202 deletions(-)

hooks/post-receive

-- 
C library for writing portable SSH2 clients
_______________________________________________
libssh2-changes mailing list
libssh2-changes_at_cool.haxx.se
http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-changes
Received on 2009-08-27