[omnibox] Backoff document provider on 400 or 499 response.
Previously, the document provider backed off upon receiving http 200 responses with certain error codes (403 & 503). However, the backend sends http 400 and 499 responses to notify the client to backoff. This CL modifies doc provider to backoff upon receiving any of the backoff responses: http 200 w/ code 403, http 503 w/ code 503, http 400, and http 499 responses). To avoid having to wait for this CL to rollout, the backend may be modified to reply with the http 200 backoff responses. If that is the case, once this CL rolls out to stable, the backend will return to sending http 403 and 499 backoff responses. Afterwards, the document provider will be modified to no longer listen for the http 200 backoff responses. Alternatively, if the backend is never modified to send http 200 backoff responses, backoff won't work until this CL rolls out. Regardless, the document provider should be modified to only listen to one set of backoff responses going forward. Bug: 1022071 Change-Id: I60070be5a0f727bfda3cf165daed03a82efbb277 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1900400 Commit-Queue: manuk hovanesian <manukh@chromium.org> Reviewed-by:Justin Donnelly <jdonnelly@chromium.org> Cr-Commit-Position: refs/heads/master@{#713175}
Showing
Please register or sign in to comment