Subject: [libssh2] Blocking read returns PACKET_EAGAIN if not enough data is available?

[libssh2] Blocking read returns PACKET_EAGAIN if not enough data is available?

From: Eberhard Mattes <em-libssh2_at_online.ms>
Date: Tue, 08 May 2007 11:29:02 +0200

Any idea how to resolve bug 1714796?

http://sourceforge.net/tracker/index.php?func=detail&aid=1714796&group_id=125852&atid=703942

The correct place would be libssh2_packet_read(), but currently that function
doesn't know whether we're in blocking mode or not.

In blocking mode,

                 if(remainbuf < blocksize) {

should be replaced with

                 while(remainbuf < blocksize) {

Eberhard

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-05-08