Cirelle Enterprises wrote to Chris Santerre:

> Chris,
>
> Why aren't  you running rsync for the rules.
>
> That would cut down on bandwidth because if the rule
> didn't change, no download and is much better than the wget

HTTP would do a good job of this itself, if RDJ took advantage of the
If-Modified-Since request-header field, significant bandwidth could be
saved.

I'm 99% sure wget doesn't support that, or 304 replies (probably since
it has no real concept of the local filesystem :-), but it'd be pretty
trivial to implement with other tools/libraries not nearly as bulky as
rsync.

rsync is better for large hierarchies of many files. Using it to update
a dozen or so files would be overkill, IMO. rsync is also quite resource
intensive on server and client side.

Chris, if you want, I can look at reworking RDJ to take advantage of
If-Modified-Since, as long as it is (relatively) safe to assume that the
modified dates change IFF there are new versions of each ruleset.

All of the PARSE_NEW_VER_SCRIPTS stuff could still be preserved, I
suppose.

- Ryan

-- 
  Ryan Thompson <[EMAIL PROTECTED]>

  SaskNow Technologies - http://www.sasknow.com
  901-1st Avenue North - Saskatoon, SK - S7K 1Y4

        Tel: 306-664-3600   Fax: 306-244-7037   Saskatoon
  Toll-Free: 877-727-5669     (877-SASKNOW)     North America

Reply via email to