Hi Duane & squid-users,
Some days ago I send you a mail about ftpget failing with some
ftp-hosts... now I'm sure I was wrong, I can't ftp _any_ host :-(
connect() returns -1 EINPROGRESS (Operation now in progress)... it
sounds strange, so I have strace'd both versions 1.1.beta6 and
1.1.beta9. Version beta6 works ok (?) but beta9 doesn't, and both
connects return -1 EINPROGRESS (???). Here there are a bit of these
straces.
BTW, I've built it from full source without patches, in two machines,
with Linux-2.0.21 and 2.0.23, and no changes.
Any ideas?
Anybody has a Linux system with ftpget 1.1.beta[789] working?
strace -o kk6 squid-1.1.beta6/src/ftpget -DALL,9 -R - ftp.lander.es / A anonymous pp@
....
time(NULL) = 846219375
write(2, "[25/Oct/1996:05:56:15 +0100] f"..., 82) = 82
brk(0x807d000) = 0x807d000
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
connect(4, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("195.76.46..46")}, 16) = 0
send(4, "\235\230\1\0\0\1\0\0\0\0\0\0\3ft"..., 31, 0) = 31
oldselect(5, [4], NULL, NULL, {5, 0}) = 1 (in [4], left {5, 0})
recvfrom(4, "\235\230\205\200\0\1\0\1\0\4\0\4"..., 1024, 0, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("195.76.46.46")}, [16]) = 212
close(4) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4
fcntl(4, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(4, {sin_family=AF_INET, sin_port=htons(21), sin_addr=inet_addr("195.76.46.40")}, 16) = -1 EINPROGRESS (Operation now in progress)
time(NULL) = 846219375
oldselect(5, [0], [4], NULL, {120, 0}) = 1 (out [4], left {120, 0})
connect(4, {sin_family=AF_INET, sin_port=htons(21), sin_addr=inet_addr("195.76.46.40")}, 16) = 0
fcntl(4, F_SETFL, O_RDWR) = 0
getsockname(4, {sin_family=AF_INET, sin_port=htons(1100), sin_addr=inet_addr("195.76.46.34")}, [16]) = 0
time(NULL) = 846219375
oldselect(5, [0 4], NULL, NULL, {120, 0}) = 1 (in [4], left {119, 100000})
read(4, "2", 1) = 1
time(NULL) = 846219376
oldselect(5, [0 4], NULL, NULL, {120, 0}) = 1 (in [4], left {120, 0})
read(4, "2", 1) = 1
time(NULL) = 846219376
oldselect(5, [0 4], NULL, NULL, {120, 0}) = 1 (in [4], left {120, 0})
read(4, "0", 1) = 1
time(NULL) = 846219376
oldselect(5, [0 4], NULL, NULL, {120, 0}) = 1 (in [4], left {120, 0})
read(4, "-", 1) = 1
...
strace -o kk9 squid-1.1.beta9/src/ftpget -DALL,9 -R - ftp.lander.es / A anonymous pp@
...
write(2, "96/10/25 05:56:37| parse_request"..., 61) = 61
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
connect(4, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("195.76.46.46")}, 16) = 0
send(4, "\32\7\1\0\0\1\0\0\0\0\0\0\3ftp\6"..., 31, 0) = 31
oldselect(5, [4], NULL, NULL, {5, 0}) = 1 (in [4], left {5, 0})
recvfrom(4, "\32\7\205\200\0\1\0\1\0\4\0\4\3f"..., 1024, 0, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("195.76.46.46")}, [16]) = 212
close(4) = 0
write(2, "96/10/25 05:56:37| process_reque"..., 54) = 54
write(2, "96/10/25 05:56:37| do_connect: c"..., 69) = 69
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4
fcntl(4, F_GETFL) = 0x2 (flags O_RDWR)
write(2, "96/10/25 05:56:37| orig_flags = "..., 34) = 34
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
write(2, "96/10/25 05:56:37| connect_with_"..., 54) = 54
write(2, "96/10/25 05:56:37| Connecting FD"..., 71) = 71
connect(4, {sin_family=AF_INET, sin_port=htons(21), sin_addr=inet_addr("195.76.46.40")}, 16) = -1 EINPROGRESS (Operation now in progress)
write(2, "96/10/25 05:56:37| connect retur"..., 39) = 39
open("/usr/share/locale/C/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)
brk(0x807e000) = 0x807e000
stat("/etc/locale/C/libc.cat", 0xbffff488) = -1 ENOENT (No such file or directory)
stat("/usr/lib/locale/C/libc.cat", 0xbffff488) = -1 ENOENT (No such file or directory)
stat("/usr/lib/locale/libc/C", 0xbffff488) = -1 ENOENT (No such file or directory)
stat("/usr/share/locale/C/libc.cat", 0xbffff488) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/locale/C/libc.cat", 0xbffff488) = -1 ENOENT (No such file or directory)
write(2, "96/10/25 05:56:37| connect: (2) "..., 58) = 58
fcntl(4, F_SETFL, O_RDWR) = 0
brk(0x807f000) = 0x807f000
write(2, "96/10/25 05:56:37| process_reque"..., 58) = 58
write(2, "96/10/25 05:56:37| process_reque"..., 55) = 55
write(2, "96/10/25 05:56:37| ftpget: ftp.l"..., 82) = 82
write(2, "96/10/25 05:56:37| ftpget: \'ftp"..., 50) = 50
close(1) = 0
close(0) = 0
close(1) = -1 EBADF (Bad file number)
_exit(3) = ?
Regards,
-- Roberto Lumbreras Pastor mailto:rover@lander.es Lander Internet - Spain http://www.lander.es/ Tel +34 1 556.28.83 Fax +34 1 556.30.01Received on Thu Oct 24 1996 - 21:33:42 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:33:21 MST