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: James Housley <jim_at_thehousleys.net>
Date: Tue, 8 May 2007 06:51:09 -0400

On May 8, 2007, at 5:29 AM, Eberhard Mattes wrote:

> 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

You don't state what version this is, but there is currently major re-
writing being done in this area.

Jim

--
/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
  X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
jeh@FreeBSD.org      http://www.FreeBSD.org     The Power to Serve
jim@TheHousleys.Net  http://www.TheHousleys.net
---------------------------------------------------------------------
Progress (n) : What led from smart users in front of dumb terminals to
dumb users in front of smart terminals.
-------------------------------------------------------------------------
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