Skip Menu |

This queue is for tickets about the Net-SFTP CPAN distribution.

Report information
The Basics
Id: 122249
Status: open
Priority: 0/
Queue: Net-SFTP

People
Owner: Nobody in particular
Requestors: ionutz22 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.

Subject: Re: [rt.cpan.org #122249] Net::SFTP 0.11 - file transfer hangs or takes forever
Date: Tue, 27 Jun 2017 15:06:33 -0700
To: bug-Net-SFTP [...] rt.cpan.org
From: Lance Kinley <lkinley [...] gmail.com>
This should be resolved in 0.12 which should be available on CPAN shortly. On Tue, Jun 27, 2017 at 6:39 AM, Ionut Hoza via RT <bug-Net-SFTP@rt.cpan.org Show quoted text
> wrote:
Show quoted text
> Tue Jun 27 09:39:41 2017: Request 122249 was acted upon. > Transaction: Ticket created by ionutz22@gmail.com > Queue: Net-SFTP > Subject: Net::SFTP 0.11 - file transfer hangs or takes forever > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: ionutz22@gmail.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=122249 > > > > 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. > >
Subject: Re: [rt.cpan.org #122249] Net::SFTP 0.11 - file transfer hangs or takes forever
Date: Thu, 29 Jun 2017 13:02:07 +0300
To: bug-Net-SFTP [...] rt.cpan.org
From: Ionut Hoza <ionutz22 [...] gmail.com>
Hi Lance, I've updated to 0.12 and put function works as expected, also it seems a bit faster than in previous version. I think you can close it. Thank you, John. On Wed, Jun 28, 2017 at 1:06 AM, Lance Kinley via RT < bug-Net-SFTP@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=122249 > > > This should be resolved in 0.12 which should be available on CPAN shortly. > > On Tue, Jun 27, 2017 at 6:39 AM, Ionut Hoza via RT < > bug-Net-SFTP@rt.cpan.org
> > wrote:
>
> > Tue Jun 27 09:39:41 2017: Request 122249 was acted upon. > > Transaction: Ticket created by ionutz22@gmail.com > > Queue: Net-SFTP > > Subject: Net::SFTP 0.11 - file transfer hangs or takes forever > > Broken in: (no value) > > Severity: (no value) > > Owner: Nobody > > Requestors: ionutz22@gmail.com > > Status: new > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=122249 > > > > > > > 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. > > > >
> >