Subject: Re: sftp_read problems with large buffer

Re: sftp_read problems with large buffer

From: Peter Stuge <peter_at_stuge.se>
Date: Tue, 4 Aug 2009 21:03:44 +0200

Peter Stuge wrote:
> >> b95fe985af3c80a2babcaaaf7da69a15b1237c49 is first bad commit
> >
> > Oh my, this again. Can we revert this change cleanly without any
> > nasty side-effects?
>
> I promised to take a look but I haven't had a chance. I will get to
> it right now and send an update in a bit.

The most likely way for select() to end up with all empty fd_sets is
in _libssh2_wait_socket(), if libssh2_session_block_directions()
returns 0.

Daniel, can you describe the theory around _wait_socket() and
BLOCK_ADJUST() a little?

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