Subject: | Net::SFTP 0.11 - file transfer hangs or takes forever |
Date: | Tue, 27 Jun 2017 16:38:39 +0300 |
To: | bug-Net-SFTP [...] rt.cpan.org |
From: | Ionut Hoza <ionutz22 [...] gmail.com> |
Hi guys,
I've installed Net::SFTP using CPAN (after some dependencies that were hard
to resolve) on a CentOS 7 machine.
I'm using this module to connect to a sftp server and upload a file.
It looks it connects fine and after the upload starts it hangs or upload
goes very slow.
I have 2 use cases here:
1) If I press enter 2-3 times it goes further, closes connection but it
looks only 65536 are transferred to sftp server.
It looks files smaller than 65536 works fine.
2) to upload a 600KB file it took 12 minutes, see attached log
basically the the sftp part took 12 minutes.
<snip>
ans667.int.example.com: sftp: Sending SSH2_FXP_INIT
ans667.int.example.com: sftp: Remote version: 3
ans667.int.example.com: sftp: Sent SSH2_FXP_OPEN I:0 P:/sftptest/6672.pdf
ans667.int.example.com: sftp: Sent message SSH2_FXP_WRITE I:1 O:0
ans667.int.example.com: sftp: In write loop, got 65536 offset 0
ans667.int.example.com: sftp: Sent message SSH2_FXP_WRITE I:2 O:65536
ans667.int.example.com: sftp: In write loop, got 65536 offset 65536
ans667.int.example.com: sftp: Sent message SSH2_FXP_WRITE I:3 O:131072
ans667.int.example.com: sftp: In write loop, got 65536 offset 131072
ans667.int.example.com: sftp: Sent message SSH2_FXP_WRITE I:4 O:196608
ans667.int.example.com: sftp: In write loop, got 65536 offset 196608
ans667.int.example.com: sftp: Sent message SSH2_FXP_WRITE I:5 O:262144
ans667.int.example.com: sftp: In write loop, got 65536 offset 262144
ans667.int.example.com: sftp: Sent message SSH2_FXP_WRITE I:6 O:327680
ans667.int.example.com: sftp: In write loop, got 65536 offset 327680
ans667.int.example.com: sftp: Sent message SSH2_FXP_WRITE I:7 O:393216
ans667.int.example.com: sftp: In write loop, got 65536 offset 393216
ans667.int.example.com: sftp: Sent message SSH2_FXP_WRITE I:8 O:458752
ans667.int.example.com: sftp: In write loop, got 65536 offset 458752
ans667.int.example.com: sftp: Sent message SSH2_FXP_WRITE I:9 O:524288
ans667.int.example.com: sftp: In write loop, got 65536 offset 524288
ans667.int.example.com: sftp: Sent message SSH2_FXP_WRITE I:10 O:589824
ans667.int.example.com: sftp: In write loop, got 29224 offset 589824
ans667.int.example.com: sftp: Sent message T:10 I:11
ans667.int.example.com: sftp: Sent message T:4 I:12
</snip>
some recommendations for older versions was to use Math::BitInt::GPM which
seems to speedup the process ... but it looks this module is not used
anymore. even installing this it's not taken in consideration.
Thank you.
Message body is not shown because sender requested not to inline it.