Closed Bug 349102 Opened 18 years ago Closed 18 years ago

implement back off code for remote phishing lookups

Categories

(Toolkit :: Safe Browsing, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 2

People

(Reporter: tony, Assigned: tony)

References

Details

(Keywords: fixed1.8.1)

Attachments

(1 file, 1 obsolete file)

Just in case the data provider's servers can't keep up with phishing requests, we should have back off code in the client that temporarily stops making requests. Search suggestion uses the following logic: if there are 3 server errors (500, 502, 503) in 10 minutes, we stop making requests for 10 minutes. When we restart, if there's another error, we double the wait (20 minutes), and so on. We should have the same logic, although we may tweak the constants.
Flags: blocking-firefox2?
What do we do when the anti-phishing server gives us an error, or during back-off? Allow the load? Allow the load and put up a subtle warning that the page hasn't been checked for phishiness? Disallow the load?
(In reply to comment #1) > What do we do when the anti-phishing server gives us an error, or during > back-off? Allow the load? Allow the load and put up a subtle warning that the > page hasn't been checked for phishiness? Disallow the load? Not sure, but that seems to be an orthogonal problem because it could currently happen and nothing is shown to the user. This at least allows the data provider to not melt down. I would vote for a subtle warning, but maybe that should be a separate bug.
Flags: blocking-firefox2? → blocking-firefox2+
Target Milestone: --- → Firefox 2
Blocks: 349227
The suggestion is that we fall back and use local table look ups if the remote lookups fail. This would require that we also download all tables all the time so we have it as a backup.
No longer blocks: 349227
Blocks: 349227
Attached patch v1: remote lookup backoff (obsolete) — Splinter Review
- update xml-fetcher to return the http status code - if http lookup fails, check local lists - if http lookup fails to many times, back off and use local lists
Attachment #235337 - Flags: review?(provos)
Comment on attachment 235337 [details] [diff] [review] v1: remote lookup backoff looks good.
Attachment #235337 - Flags: review?(provos) → review+
Attachment #235337 - Flags: review?(darin)
Functionally same as last patch, just removing the checkURL_ function which isn't needed anymore.
Attachment #235337 - Attachment is obsolete: true
Attachment #235823 - Flags: review?(darin)
Attachment #235337 - Flags: review?(darin)
Attachment #235823 - Flags: review?(darin) → review+
Attachment #235823 - Flags: superreview?(bryner)
Attachment #235823 - Flags: superreview?(bryner) → superreview+
on trunk
Attachment #235823 - Flags: approval1.8.1?
Comment on attachment 235823 [details] [diff] [review] v2: refactor to remove checkURL_ (not needed) a=beltzner on behalf of 181drivers
Attachment #235823 - Flags: approval1.8.1? → approval1.8.1+
on branch
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: