Subject: [libssh2] R: R: SFTP read hanging forever (LIBSSH2_ERROR_EAGAIN)

[libssh2] R: R: SFTP read hanging forever (LIBSSH2_ERROR_EAGAIN)

From: Antonio <tonyspoken_at_libero.it>
Date: Wed, 26 Sep 2007 12:21:14 +0200

Hi.

Ok, downloading all the CVS repository did the trick for the first problem,
so I was able to get files with a 32 Kb buffer.
Just one comment. I see from previous threads that using a variable windows
size could cause problems in some SSH servers. Someone knows if there are
problems with the built-in SSH package of SUN 10?

For the second problem, it persists. The application hangs until the TCP
connection is put down by the system timeout (which default is 8 mins on a
SUN machine), but the select mechanism is not working at all (probably
because library is faking the Eagain value in return, but I'm not sure of
this, I should run into the library code better).

Regards,
Antonio

> -----Messaggio originale-----
> Da: libssh2-devel-bounces_at_lists.sourceforge.net [mailto:libssh2-devel-
> bounces_at_lists.sourceforge.net] Per conto di Daniel Stenberg
> Inviato: mercoledý 26 settembre 2007 9.20
> A: libssh2 hacking
> Oggetto: Re: [libssh2] R: SFTP read hanging forever (LIBSSH2_ERROR_EAGAIN)
>
> On Wed, 26 Sep 2007, Antonio wrote:
>
> > I used libssh2 0.17 version both with the latest patch in CVS you
> provided
> > for the SCP case of hanging, and without this patch(pure 0.17 version).
>
> Please try the latest CVS too, just to be sure we haven't fixed this
> already.
>
> > And probably i misused the "window size" expression here. I simply
> passed a
> > read buffer of 32 and 16 Kb to the libssh2_sftp_read, ready to be
> filled.
>
> ok, I understand.
>
> > What i noticed was that also with the 16 Kb buffer request, using a file
> > larger than 10 Meg the downloads hung at a certain point. Have you ever
> > tried to manipulate the sftp_RW_nonblock.c using larger buffers (i.e.
> > 16,32Kb) instead of the 1000 bytes buffer in the example, and to
> download
> > larger files?
>
> Yes, and I fixed a problem related to that not too long ago. Can't
> remember
> exactly when off the top of my head though.
>
> > Most probably you could replicate the same scenario... Let me know if
> you
> > have the same behaviour.
>
> I currently don't have much time for libssh2, so I haven't tried anything
> of
> this myself recently.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> libssh2-devel mailing list
> libssh2-devel_at_lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libssh2-devel
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.488 / Virus Database: 269.13.30/1030 - Release Date:
> 25/09/2007 8.02
>

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.488 / Virus Database: 269.13.30/1030 - Release Date: 25/09/2007
8.02
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-09-26