-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>> A connection problem was considered a failure in the past but
>> it was making more harm than good. In most cases the problem
>> lies at the user's end (keep in mind we have ~2M different
>> IPs downloading

Freshclam needs a "connection failed" counter.  Reset the
"connection failed" counter to zero after a successful transfer.
To select a mirror, add "connection failed" + "success" in the
mirror selection scheme.  This will help push persistent dead
sites down in preference, but still keep them available for when
the network starts working.

This recent episode has exposed an opportunity to improve
freshclam's handling of persistently dead mirrors.

In this case, a mirror was unreachable from a fairly large section
of the internet, but worked fine for others.  While this event is
notable for its scale, it is probably not terribly uncommon on a
smaller scale.

Currently, a persistently dead mirror will have an artificially
low (possibly zero) failure count, and a low (possibly zero)
success count.

Since freshclam prefers mirrors with low failures and low
successes, this makes persistently dead mirror a "connection
attractor" where it will be tried even more frequently.

We've seen this in action with this recent episode where the dead
mirror was frequently tried first for many people.

Freshclam needs some way to identify persistently dead mirrors.
While it would be a mistake to ignore a host after a low number of
transient connection errors, we're shooting ourselves in the foot
to never consider connection errors.


  -- Noel Jones
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOdL5aAAoJEJGRUHb5Oh6gpGcIAKVStnNiE49b1DRVVPphcHU0
98aJr5yp9rDwIoWFOumxFxQTN2D6YREz/FD3g/gQmdIc6DE9yzItqBSMQURfH5/u
Qnw4FZjxmkkUrKm/UV3+2isbDQn//s9xYQYL1nj/kz+fq480mLK/1d90L/dHAJfj
/RaNwaRgpmwpZ5dDxWuiVfCI3EuPZIh5gTs9NvIQs3rVUsXexC6y/GPszv2nqmVA
yfqtbY0YfCx2Z6GUzBa1C2ZgHDOMRuK0ys2bkh8P5AOM9eGFVD9EFxMJ1LNtW5L4
7HwKY9VPKNGokKIge01P7G/DwLgEbyTW76PfA6cHgoNNC88UiBlxjNnAwtQZ8VM=
=eQvA
-----END PGP SIGNATURE-----
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to