Subject: [libssh2] R: Transferring large files with SCP fails

[libssh2] R: Transferring large files with SCP fails

From: Antonio <tonyspoken_at_libero.it>
Date: Thu, 1 Nov 2007 14:41:25 +0100

Hi,

I experienced a similar problem with libssh2 and I had to recompile it with
the latest libssh2 version present in CVS ( if I remember correctly there
was a bug on channel.c corrected using a workaround, last august).
Try to re-compile it with the latest version and see if it works for you.

Regards,
Antonio

> -----Messaggio originale-----
> Da: libssh2-devel-bounces_at_lists.sourceforge.net [mailto:libssh2-devel-
> bounces_at_lists.sourceforge.net] Per conto di Gavrie Philipson
> Inviato: giovedì 1 novembre 2007 14.17
> A: libssh2-devel_at_lists.sourceforge.net
> Oggetto: [libssh2] Transferring large files with SCP fails
>
> Hi,
>
> I'm trying to transfer large files with the SCP protocol, using cURL
> together
> with libssh2.
>
> My curl SCP transfer hangs after 192 kB:
>
> $ curl -T /tmp/1 scp://test:test_at_192.168.240.1/tmp/1
> % Total % Received % Xferd Average Speed Time Time Time
> Current
> Dload Upload Total Spent Left
> Speed
> 100 192k 0 0 0 192k 0 30399 --:--:-- 0:00:06 --:--:--
> 0
>
> Following up on this thread on the cURL mailing list:
> http://news.gmane.org/find-
> root.php?group=gmane.comp.web.curl.general&article=8052
>
> I followed Daniel's suggestion, and ran the 'scp' and 'scp_nonblock'
> examples.
>
> The 'scp' example works on a small file, but fails on a big one (6 MB):
>
> $ ./scp 127.0.0.1 root **** /tmp/bigfile >/dev/null
> Fingerprint: ...
> libssh2_channel_read() failed: 583
> all done
>
> The 'scp_nonblock' example hangs after a while:
>
> $ ./scp_nonblock 127.0.0.1 root **** /tmp/bigfile >/dev/null
> Fingerprint: ...
> libssh2_scp_recv()!
> libssh2_scp_recv() is done, now receive data!
>
> Running strace on it shows a bunch of these lines:
>
> select(4, [3], [3], NULL, {10, 0}) = 1 (in [3], left {10, 0})
> recv(3, 0x804a5a4, 4096, 0x4000) = -1 EAGAIN (Resource temporarily
> unavailable)
> select(4, [3], [3], NULL, {10, 0}) = 1 (in [3], left {10, 0})
> recv(3, 0x804a5a4, 4096, 0x4000) = -1 EAGAIN (Resource temporarily
> unavailable)
>
> For completeness I'll add that the regular command line 'scp' utility
> (from
> OpenSSH) works perfectly on this system.
>
> Any help would be appreciated...
>
> I tested this also on the latest snapshot (libssh2-0.18.0-20071031).
>
> -- Gavrie
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> 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.503 / Virus Database: 269.15.17/1103 - Release Date:
> 01/11/2007 6.01
>

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 01/11/2007
6.01
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-11-01