On Fri, 20 Mar 2009, Heiner Steven wrote:
>> Are you using a blocking or non-blocking socket?
>
> I tried both. As a default I used a blocking socket, resulting in the
> symptom decribed. When I modified the code to use a non-blocking socket
> (libssh2_session_set_blocking(session, 0)) the function returns several
> times (maybe 10, 20 times) with
>
> LIBSSH2SFTP_EAGAIN == LIBSSH2_ERROR_EAGAIN == -37
>
> and blocks afterwards.
Why does it return that 10-20 times? Do you call it immediately in a
busy-loop?
What function blocks with a non-blocking socket? That surely can't hang on the
recv() then at least...
>> No it isn't, but I'll admit I don't do a lot of tests with blocking
>> sockets.
>
> The problem also exists with non-blocking sockets.
I've done quite a lot of tests with non-blocking and I've not seen this, and
I've also got reports from others who've done the libcurl-based (~30) tests
without experiencing this. It might indicate that the problem happens only in
more specific situations, like with a particular server on a particular OS or
something else...
-- / daniel.haxx.se ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ libssh2-devel mailing list libssh2-devel_at_lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-develReceived on 2009-03-20