Net-SFTP - Re:put() command hanging on files larger than 2kb

Posted on Tue Oct 23 16:05:19 2007 by csgonan in response to 3244 (See the whole thread of 5)
Re:put() command hanging on files larger than 2kb
I am experiencing a very similar thing. I have net::SFTP installed on a solaris 8 server, connecting to a linux server. The upload starts and I get the error below on the second packet. The file size is exactly the total size of those 2 numbers in the SSH2_FXP_WRITE statements (8192 + 5821). This is my ftp variable that is used through-out the script. Where do you change the COPY_SIZE parameter? Any ideas or suggestions would help. Just a note: I am using Net::xFTP to be able to use the ftp variables in the sftp module.
my %args = (user => $ftpuser, password => $ftppass, debug => 1); $ftp = Net::xFTP->new(Net::SFTP,$ftpip, %args) print "Uploading $_[0] to Server .......... " if (!$silent); $ftp->put($_[0]) or emailerr("Error: $0 could not upload $_[0] to Server."); print "Done\n\n" if (!$silent);
server: sftp: Sent message T:16 I:9 server: sftp: Sent message T:16 I:10 server: sftp: Sent message T:16 I:11 server: sftp: Sent SSH2_FXP_OPEN I:12 P:/opt/websites/ register.company.org/hccs/WC_file.dat server: sftp: Sent message SSH2_FXP_WRITE I:13 O:0 server: sftp: In write loop, got 8192 offset 0 server: sftp: Sent message SSH2_FXP_WRITE I:14 O:8192 server: sftp: In write loop, got 5821 offset 8192 server: sftp: Sent message T:10 I:15 Uploading WC_file.dat to Server .......... Error: ./ uploadSSH_company2.pl could not upload WC_file.dat to Server.
Write a response