When I do a PUT on an empty file, it sometimes hangs.
---- Data connection established
---> STOR testfile
<--- 150 Opening BINARY mode data connection for testfile
**** Hangs here *****
---- Closing data socket
<--- 226 Transfer complete.
---> QUIT
---- Closing control socket
The interesting thing is that it works fine for non-empty files, when I do it directly from command line, or when I run the script under truss.
ksh HERE doc
I am using a ksh HERE document to sendthe commands to lftp:
lftp -d <<- EOF
various sets
open -u ****,**** -p ** HOST || exit 4
cd ftpstest || exit 5
put testfile -o testfile || exit 8
exit
EOF
VERSION
lftp -version
LFTP | Version 3.4.2 | Copyright (c) 1996-2006 Alexander V. Lukyanov
LFTP is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
There is absolutely no warranty for LFTP. See COPYING for details.
Send bug reports and questions to <[email protected]>.
Libraries used: Readline 4.3, OpenSSL 0.9.8a 11 Oct 2005
From Truss (fd=4 is control, fd=7 is data, passive mode)
Hang:
19561: read(7, 0x002840D5, 48) = 48
19561: B7 ?BC85DA04 V k v\n11 p * ! y83 rC2E5A4 "C1F5948DFE0EF7 k ,87 j
19561: E9AC98D0F }83 = 007\t9DDFF4DB10
19561: write(7, 0x00292200, 59) = 59
19561: 140301\00101160301\0 08816 ,8A qF518AFA5 I uB99EFA j 7F596 ?87A1
19561: | D > o "869ECF ? p9683B3D7 nE680 71C18ECD7 a O8FEB l
19561: read(4, 0x00251F30, 5) Err#11 EAGAIN
19561: poll(0x00245820, 1, 300000) (sleeping...)
Working:
19604: read(7, 0x00290A85, 48) = 48
19604: AA80 %BAE7 ^ ;CAC0CFBF\b ( E4 B14C3F783B9 T 8E8 ?9C17BAC5 |CD i
19604: CD9 0 ~9D - 6 R u m b18ED c P \
19604: write(7, 0x0029EBB0, 59) = 59
19604: 140301\00101160301\0 0E9A8F087FB 5 ]F2D5 502E986C9 ? AE8D1 L 7 1
19604: xDD98B4C5 q\t _B7 K03D8 Z @C8CFA5 bDBC5 7 8D1 h HCDC6
19604: read(4, 0x0025E328, 5) Err#11 EAGAIN
19604: ioctl(2, TIOCGSID, 0xFFBEEFE4) = 0
19604: 0xFFBEEFE4: 3926
19604: getsid(0) = 3926
19604: ioctl(2, TIOCGPGRP, 0xFFBEF04C) = 0
19604: 0xFFBEF04C: 19603
19604: getpgrp() = 19603
19604: write(2, 0x002528B0, 25) = 25
19604: - - - - C l o s i n g d a t a s o c k e t\n
Parameters set before open command
set ftps:initial-prot p
set ftp:ignore-pasv-address yes
set ftp:passive-mode on
set ftp:auto-passive-mode yes
set ftp:ssl-protect-data yes
set ftp:ssl-protect-list yes
set ftp:ssl-use-ccc no
set ftp:ssl-allow-anonymous no
set ssl:verify-certificate yes
set ftp:ssl-allow yes
set ftp:ssl-force yes
set ftp:ssl-auth TLS
set ssl:ca-file "******"
Any help would be greatly appreciated!!!!!!!!!!
Adam Ringel
PE Application Support
703-903-3892 (w)
703-701-3685 (p)
- Bug? when doing a PUT on an empty file (Solaris 8) f... Adam Ringel
- Re: Bug? when doing a PUT on an empty file (Sol... Alexander V. Lukyanov
- Re: Bug? when doing a PUT on an empty file ... Adam Ringel
- Re: Bug? when doing a PUT on an empty f... Alexander V. Lukyanov
- Re: Bug? when doing a PUT on an emp... Adam Ringel
- Re: Bug? when doing a PUT on a... Alexander V. Lukyanov
- Fw: Bug? when doing a PUT on an empty file (Sol... Adam Ringel
- Fw: Bug? when doing a PUT on an empty file (Sol... Adam Ringel
