Leonid <[EMAIL PROTECTED]> writes:

> Yes, wget 1.9.1 consideres failure to connect as a fatal error and
> abandoned to re-try attempts. I have submitted several times a patch
> for fixing this and similar problems. Presumably, it will be
> inlcuded in the future wget 1.11 . If yoy need the fix now, you can
> find it the patch against wget-1.10-alpha1 in
> http://software.lpetrov.net/wget-1.10-persistent.patch or
> alternatively an entire tarball in
> http://software.lpetrov.net/wget-pet/

I reviewed the persistent patch and I think it's a very good idea --
Wget has needed something like that for a long time.

The patch as it stands IMHO does require one change: I don't think
things like "opt.ntry" and "printwhat" should be checked in as
low-level a function as connect_to_host.  connect_to_host was meant as
a fairly straightforward wrapper around functions like
gethostbyname/socket/connect that correctly multiple A/AAAA records,
IPv6, etc.  It probably shouldn't contain "UI" code such as retries.

The code in http.c and ftp.c has all the loops that retry connecting.
The patch should trivially modify them to check for persistence before
giving up.

Reply via email to