Archive Index
This month's Index
|
Subject: Re: Hang in libssh2_sftp_readdir
Re: Hang in libssh2_sftp_readdir
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 29 Jul 2009 16:20:21 +0200 (CEST)
On Wed, 29 Jul 2009, Peter Stuge wrote:
>> Why does libssh2 need to keep reading from the socket even though it did a
Yes it can return early, but why would it return early if there is more data
>> I agree that there's potentially more data to read in the next invoke of
I am sure. If there's data available and you only recv() parts of it, select()
> Also, are they really called in a loop?
They should be.
> The error sure feels like libssh2 isn't consuming all the data it can and
Yes I agree. And I'm wondering how it can happen.
> I am not sure simply reverting the patch is correct either. :\
The change was made to not forcibly always recv() until it returns
-- / daniel.haxx.se _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2009-07-29 |