Subject: Re: sftp_read problems with large buffer

Re: sftp_read problems with large buffer

From: Peter Stuge <>
Date: Tue, 4 Aug 2009 23:28:17 +0200

Peter Stuge wrote:
> > 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.

While I ponder the explanation and try to get my head around the code
a bit more, here is a patch that will change the hang behavior. I am
not sure this is a fix, but it will make something happen. :)

Those who can reproduce this problem, please test and report back.




Received on 2009-08-04