Bug#560867: can't write to remote files lines longer than 32748 chars
Salvatore Bonaccorso
salvatore.bonaccorso at gmail.com
Mon Jun 28 20:14:14 UTC 2010
Hi
Running the following small script hangs, when sending 32748 chars, if
one CTRL-C's the files get written anyway. Sending only 32747 chars
works on the other hand side well.
---(example)------------------------------------------------------------
#!/usr/bin/perl -W
use strict;
use Fcntl;
use warnings FATAL => qw (all);
use Net::SSH2;
my $ssh2 = Net::SSH2->new();
$ssh2->debug(1);
$ssh2->connect('hostname') or die $!;
$ssh2->auth_password('username','password');
my $sftp = $ssh2->sftp();
my $remote = $sftp->open("/home/username/foo.txt", O_WRONLY | O_CREAT | O_TRUNC);
print $remote 'A' x 32748;
------------------------------------------------------------------------
This was orginally in Debian a bugreport with 27442 chars, but I was
not able to reproduce. I'm now with 32748. See for details [1].
[1] http://bugs.debian.org/560867
Any ideas about that?
Bests
Salvatore
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20100628/2ae2fefb/attachment-0001.pgp>
More information about the pkg-perl-maintainers
mailing list