Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Issue 9836062: Implement exponential backoff for failed Me2Me authentication attempts (Closed)

Created:
8 years, 9 months ago by Sergey Ulanov
Modified:
8 years, 9 months ago
Reviewers:
Jamie, Jói, Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, cbentzel+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, darin-cc_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Implement exponential backoff for failed Me2Me authentication attempts BUG=113273 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=129104

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -4 lines) Patch
M remoting/client/plugin/chromoting_instance.h View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/client/plugin/pepper_view.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/host/chromoting_host.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M remoting/host/chromoting_host.cc View 1 2 4 chunks +40 lines, -1 line 2 comments Download
M remoting/protocol/errors.h View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/jingle_messages.h View 1 chunk +1 line, -2 lines 2 comments Download
M remoting/protocol/jingle_messages.cc View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/jingle_session.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M remoting/protocol/jingle_session_manager.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M remoting/protocol/session_manager.h View 1 chunk +10 lines, -0 lines 3 comments Download
M remoting/webapp/_locales/en/messages.json View 1 1 chunk +4 lines, -0 lines 0 comments Download
M remoting/webapp/client_screen.js View 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/webapp/client_session.js View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/webapp/remoting.js View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Sergey Ulanov
I'll resurrect ChromotingHost unittests and write unittest for backoff logic in a separate CL.
8 years, 9 months ago (2012-03-23 23:03:33 UTC) #1
Jói
Quick drive-by: http://codereview.chromium.org/9836062/diff/2001/remoting/host/chromoting_host.cc File remoting/host/chromoting_host.cc (right): http://codereview.chromium.org/9836062/diff/2001/remoting/host/chromoting_host.cc#newcode287 remoting/host/chromoting_host.cc:287: login_backoff_.InformOfRequest(false); It's confusing to me that this ...
8 years, 9 months ago (2012-03-26 12:31:51 UTC) #2
Sergey Ulanov
Jamie, this CL has some client-side changes, so it's better if we can land it ...
8 years, 9 months ago (2012-03-26 17:54:14 UTC) #3
Jamie
lgtm http://codereview.chromium.org/9836062/diff/2001/remoting/webapp/_locales/en/messages.json File remoting/webapp/_locales/en/messages.json (right): http://codereview.chromium.org/9836062/diff/2001/remoting/webapp/_locales/en/messages.json#newcode142 remoting/webapp/_locales/en/messages.json:142: "message": "Connections to the remote computer are temporarily ...
8 years, 9 months ago (2012-03-26 21:08:22 UTC) #4
Sergey Ulanov
http://codereview.chromium.org/9836062/diff/2001/remoting/host/chromoting_host.cc File remoting/host/chromoting_host.cc (right): http://codereview.chromium.org/9836062/diff/2001/remoting/host/chromoting_host.cc#newcode287 remoting/host/chromoting_host.cc:287: login_backoff_.InformOfRequest(false); On 2012/03/26 12:31:56, Jói wrote: > It's confusing ...
8 years, 9 months ago (2012-03-26 23:00:31 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/9836062/11001
8 years, 9 months ago (2012-03-27 01:20:58 UTC) #6
Jói
LGTM, thanks for adding the comments Sergey. On Tue, Mar 27, 2012 at 1:20 AM, ...
8 years, 9 months ago (2012-03-27 10:44:45 UTC) #7
Wez
http://codereview.chromium.org/9836062/diff/11001/remoting/host/chromoting_host.cc File remoting/host/chromoting_host.cc (right): http://codereview.chromium.org/9836062/diff/11001/remoting/host/chromoting_host.cc#newcode290 remoting/host/chromoting_host.cc:290: // them try to authenticate simultaneously. nit: Suggest rewording: ...
8 years, 9 months ago (2012-03-27 16:23:56 UTC) #8
Wez
Late-to-the-party LGTM, but please see my comments re naming, below. On 2012/03/27 16:23:56, Wez wrote: ...
8 years, 9 months ago (2012-03-27 16:25:19 UTC) #9
Sergey Ulanov
Addressed the comments in a new CL: http://codereview.chromium.org/9860045/ http://codereview.chromium.org/9836062/diff/11001/remoting/host/chromoting_host.cc File remoting/host/chromoting_host.cc (right): http://codereview.chromium.org/9836062/diff/11001/remoting/host/chromoting_host.cc#newcode290 remoting/host/chromoting_host.cc:290: // ...
8 years, 9 months ago (2012-03-27 18:00:51 UTC) #10
Wez
8 years, 9 months ago (2012-03-27 19:49:41 UTC) #11
http://codereview.chromium.org/9836062/diff/11001/remoting/protocol/session_m...
File remoting/protocol/session_manager.h (right):

http://codereview.chromium.org/9836062/diff/11001/remoting/protocol/session_m...
remoting/protocol/session_manager.h:121: DISABLED,
On 2012/03/27 18:00:52, sergeyu wrote:
> On 2012/03/27 16:23:56, Wez wrote:
> > nit: "DISABLED" seems like a bad name for this, since that's the term we
> > generally use when the host is stopped (i.e. not online). "OVERLOAD" or
> "UNAVAILABLE" might be better terms.
> 
> There is HOST_IS_OFFLINE error code that we use to indicate that the host is
> offline, so I don't think HOST_IS_DISABLED can be confusing.

If we have "offline" and "disabled" then it's natural for a reader to assume
that DISABLED means the user explicitly disabled the host, and that OFFLINE
means that the host is enabled but not online for some reason.

> IMHO distinction between UNAVAILABLE and OFFLINE is even less clear.

I'd be fine with OVERLOAD[ED]. ;)

"unavailable" and "offline" have overlapping meanings, but "offline" is pretty
specific - it's saying the host is actually offline.  "unavailable" is more
specific, meaning it's online but not currently available - that might be
re-usable to mean that the host is in-use if we ever wanted to provide
floor-control for access to hosts.

> I've renamed this particular value to UNAVAILABLE, but kept HOST_IS_DISABLED
> error code  - changing it now would require merging to the M19 branch as we
use
> these names for interaction between the client plugin and webapp. We can still
> do if you feel strongly about it.

I do think that HOST_IS_DISABLED is a very confusing name - it suggests that the
host is installed & configured, but not enabled right now, rather than that it
has automatically stopped accepting connections.

Powered by Google App Engine
This is Rietveld 408576698