Archive Index
This month's Index
|
Subject: [libssh2] Transferring large files with SCP fails
[libssh2] Transferring large files with SCP fails
From: Gavrie Philipson <gavrie_at_gmail.com>
Date: Thu, 1 Nov 2007 13:17:27 +0000 (UTC)
Hi,
I'm trying to transfer large files with the SCP protocol, using cURL together
My curl SCP transfer hangs after 192 kB:
$ curl -T /tmp/1 scp://test:test_at_192.168.240.1/tmp/1
Following up on this thread on the cURL mailing list:
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
The 'scp_nonblock' example hangs after a while:
$ ./scp_nonblock 127.0.0.1 root **** /tmp/bigfile >/dev/null
Running strace on it shows a bunch of these lines:
select(4, [3], [3], NULL, {10, 0}) = 1 (in [3], left {10, 0})
For completeness I'll add that the regular command line 'scp' utility (from
Any help would be appreciated...
I tested this also on the latest snapshot (libssh2-0.18.0-20071031).
-- Gavrie
-------------------------------------------------------------------------
|