[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wput: bug-report



The problem seems to be that the ftp-server is in fact too fast for wput: wput 
establishes the data-connection for the filelisting and then LISTs the 
contents: 150 Opening ASCII mode data connection for /bin/ls.
Now wput receives the listing and then waits for the final message:
226 Transfer complete.
In your case the ftp-server seems to send 150 Opening ASCII mode data 
connection for /bin/ls. and 226 Transfer complete. in one tcp-packet, so that 
wput just reads the first line and ignores the rest and then waits for 226 
Transfer complete. wput "hangs up" because this line would never arive.
To fix the problem, the recv-routine of wput has to be rewritten (this has to 
happen anyway because especially on slow connections, there are several flaws 
in this routine). Unfortunately, I won't have any time to work on wput in the 
near future, so unless you'd like to fix this yourself, there is nothing i 
can do for you.

ps: yeah the -d-flag is now missing, but is the same as -v -v and was 
considered not to be that important ;)

Am Mittwoch, 16. Juni 2004 12:40 schrieb vabvab@mail.ru:
> set WPUTRC=d:\util\unx\wputrc
> set WGETRC=d:\util\unx\wgetrc
> wput.exe --reupload -N -d -v -o wput.log tm ftp://vab:<...>@tm/
> wput.exe --reupload -N -d -v -o wput2.log discovery ftp://vab:<...>@tm/
>
> First program run OK (often :-) )  wput.log
> Second almost always suspends (but not always) wput2.log
> after one minute i have pressed Ctl-C
>
> PS: there is no information about -d in --help :-)
>
> HF> Hi,
> HF> you could turn on debug-output (-d) for further details on what wput is
> doing. HF> And you probably better use -o wput.log instead of >wput.log.
> With this HF> logfile i might be able to find out, what's wrong there...
>
> HF> Am Mittwoch, 16. Juni 2004 11:35 schrieben Sie:
> >> There is problem with timestamping. When I set timestamping 'on' (in the
> >> command line or in the wputrc) then i see such log (full):
> >>
> >> ----begin-----
> >>
> >> --13:15:33-- `tm\contakts.html'
> >>     => ftp://vab:xxxxx@127.0.0.1:21/tm/contakts.html
> >> Connecting to 127.0.0.1:21...  connected!
> >> Logging in as vab ... Logged in!
> >> ==> LIST ... done.
> >>
> >> ----end-----
> >>
> >> So program is waiting for somthing, do nothing. Two times i make it to
> >> work properly, but i cannot repeat this again.
> >>
> >> Command line: wput.exe --reupload tm ftp://vab:<...>@tm/ >wput.log
> >> Soft:
> >>       wput version: 0.4a-w32
> >>       windows 2000 SP2
> >>       Both SERV-U FTP 2.4a and IIS FTP.
> >>
> >>
> >> What can i do with this?

-- 
Mit besten Grüßen
 Hagen                          mailto:itooktheredpill@gmx.de
                      http://itooktheredpill.dyndns.org