Subject: Re: sftp_read problems with large buffer

Re: sftp_read problems with large buffer

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 4 Aug 2009 19:47:33 +0200 (CEST)

On Tue, 4 Aug 2009, Alexander Lamaison wrote:

> b95fe985af3c80a2babcaaaf7da69a15b1237c49 is first bad commit

> If recv() returns something less than the full buffer we know we're done for
> now, so skip looping and doing another read that then simply will cause an
> EAGAIN as it may trick the user into believing things that aren't true.

Oh my, this again. Can we revert this change cleanly without any nasty
side-effects?

I wish we had a test suite that would catch these errors before we commit...

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2009-08-04