DescriptionAdd backup URL support for SafeBrowsing data requests.
If a request fails, an alternate URL is tried immediately. This is
only done if the configuration provides backup URLs to try.
Three cases of request failure are supported:
- Issues with DNS resolution, TCP connection, or SSL handshake when
the client is believed to be connected to the internet.
- Issues with invalid HTTP responses from the server.
- Issues with general network connectivity from the client.
If the backup request fails as well, then the entire update is treated
as a failure and no further backups are attempted.
BUG=155753
TEST=unit_tests --gtest_filter=SafeBrowsingProtocolManagerTest.*
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179412
Patch Set 1 #Patch Set 2 : Differentiate backup requests #Patch Set 3 : Unit tests #Patch Set 4 : A few more tests #Patch Set 5 : Backup timeout test #Patch Set 6 : UMA #Patch Set 7 : UMA fix #Patch Set 8 : Move constants back to correct values #Patch Set 9 : Fix bad response case #
Total comments: 9
Patch Set 10 : Reduce duplication in comments #
Total comments: 12
Patch Set 11 : More backup attempts #Patch Set 12 : Extra safety check #
Total comments: 2
Patch Set 13 : Fix backup timeout test #
Total comments: 2
Patch Set 14 : Fix BackupTimeout test #
Total comments: 1
Patch Set 15 : Small return case refactor #
Messages
Total messages: 20 (0 generated)
|