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

Re: [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 14:09:09 +0200

I modified sshd to send small packets and here's a trace for an instance of the
bug which does not involve SFTP:

[libssh2] Transport: Requesting userauth service
=> libssh2_packet_write plain (17 bytes)
[...]
=> libssh2_packet_write send() (132 bytes)
[...]
[libssh2] Transport: Looking for packet of type: 6
[libssh2] Transport: Blocking until packet of type 6 becomes available
=> libssh2_packet_read() raw (3 bytes)
[...]
=> libssh2_packet_read() raw (45 bytes)
[...]
=> libssh2_packet_read() raw (4 bytes)
[...]

At this point, the client process hangs.

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