Closed
Bug 349102
Opened 18 years ago
Closed 18 years ago
implement back off code for remote phishing lookups
Categories
(Toolkit :: Safe Browsing, defect)
Toolkit
Safe Browsing
Tracking
()
RESOLVED
FIXED
Firefox 2
People
(Reporter: tony, Assigned: tony)
References
Details
(Keywords: fixed1.8.1)
Attachments
(1 file, 1 obsolete file)
23.55 KB,
patch
|
darin.moz
:
review+
bryner
:
superreview+
beltzner
:
approval1.8.1+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Updated•18 years ago
|
Flags: blocking-firefox2?
Comment 1•18 years ago
|
||
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?
Assignee | ||
Comment 2•18 years ago
|
||
(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.
Updated•18 years ago
|
Flags: blocking-firefox2? → blocking-firefox2+
Target Milestone: --- → Firefox 2
Assignee | ||
Comment 3•18 years ago
|
||
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
Assignee | ||
Comment 4•18 years ago
|
||
- 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 5•18 years ago
|
||
Comment on attachment 235337 [details] [diff] [review]
v1: remote lookup backoff
looks good.
Attachment #235337 -
Flags: review?(provos) → review+
Assignee | ||
Updated•18 years ago
|
Attachment #235337 -
Flags: review?(darin)
Assignee | ||
Comment 6•18 years ago
|
||
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)
Updated•18 years ago
|
Attachment #235823 -
Flags: review?(darin) → review+
Assignee | ||
Updated•18 years ago
|
Attachment #235823 -
Flags: superreview?(bryner)
Updated•18 years ago
|
Attachment #235823 -
Flags: superreview?(bryner) → superreview+
Assignee | ||
Comment 7•18 years ago
|
||
on trunk
Assignee | ||
Updated•18 years ago
|
Attachment #235823 -
Flags: approval1.8.1?
Comment 8•18 years ago
|
||
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+
Assignee | ||
Comment 9•18 years ago
|
||
on branch
Updated•11 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•