When freshclam is checking the cvd header of a remote file in order to find out if it needs to do an update (the function remote_cvdhead() in freshclam/manager.c), it fetches far more of the file than it needs to. The following patch makes it use an HTTP Range: request so that it only gets the 512 byte cvd header. This reduces a check-only freshclam run from over 16KB data transferred to less than 2KB data transferred. This should please the people hosting clamav mirrors.
We use rsync and it reports a *total* (i.e. request bytes + reply bytes) of 317 bytes for a "no updates" check.
This includes checking for SpamAssassin updates which we ship out in the same directory. So, a Clam only update would be smaller.
That doesn't include the TCP stuff, but then the HTTP will have that as well.
James
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Clamav-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-devel
