diff options
author | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-08 15:53:46 +0000 |
---|---|---|
committer | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-08 15:53:46 +0000 |
commit | be35a925668bfbcced00be73e04f2abd7905c5cd (patch) | |
tree | 78ec5bc6e0168288073b787bc4356874248b5af9 /sync/engine | |
parent | d890df477eb876be1688b7bebd4d10b51a1b16a8 (diff) | |
download | chromium_src-be35a925668bfbcced00be73e04f2abd7905c5cd.zip chromium_src-be35a925668bfbcced00be73e04f2abd7905c5cd.tar.gz chromium_src-be35a925668bfbcced00be73e04f2abd7905c5cd.tar.bz2 |
sync: treat gaia http 500s as retriable.
Both OAuth2TokenService and ProfileSyncService will now retry on HTTP 500s. Note that ProfileSyncService retries will only kick in if OA2TS gives up after a fixed number of attempts.
BUG=311420
Review URL: https://codereview.chromium.org/61833003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233908 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/engine')
-rw-r--r-- | sync/engine/net/server_connection_manager.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sync/engine/net/server_connection_manager.cc b/sync/engine/net/server_connection_manager.cc index 4927acd..d668869 100644 --- a/sync/engine/net/server_connection_manager.cc +++ b/sync/engine/net/server_connection_manager.cc @@ -285,6 +285,8 @@ bool ServerConnectionManager::PostBufferToPath(PostBufferParams* params, // to clean it. if (auth_token.empty() || auth_token == "credentials_lost") { params->response.server_status = HttpResponse::SYNC_AUTH_ERROR; + // Print a log to distinguish this "known failure" from others. + LOG(WARNING) << "ServerConnectionManager forcing SYNC_AUTH_ERROR"; return false; } |