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

Issue 2724223003: Disconnect all users if too many connection requests are received for It2Me (Closed)

Created:
3 years, 9 months ago by joedow
Modified:
3 years, 9 months ago
Reviewers:
Sergey Ulanov, kelvinp
CC:
chromium-reviews, chromoting-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Disconnect all users if too many connection requests are received for It2Me This change adds logic to disconnect the current session if multiple remote users attempt to use the same Access Code with It2Me. It adds a new rejection state and updates the It2MeHost unit tests. The previous behavior was to crash which was not the right thing to do. This CL also moves the point of validation from the 'incoming' state to the 'accepted' state. BUG=683317 Review-Url: https://codereview.chromium.org/2724223003 Cr-Commit-Position: refs/heads/master@{#458075} Committed: https://chromium.googlesource.com/chromium/src/+/f38c5d70b59fe17e1d3479081dd3f6bc1bfc1cb5

Patch Set 1 #

Patch Set 2 : Pre-review cleanup #

Total comments: 2

Patch Set 3 : Splitting authentication into two callbacks #

Patch Set 4 : Fixing another non-Windows build error #

Total comments: 8

Patch Set 5 : Addressing feedback #

Total comments: 2

Patch Set 6 : Addressing CR Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -104 lines) Patch
M remoting/host/it2me/it2me_host.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M remoting/host/it2me/it2me_host.cc View 1 2 3 4 4 chunks +13 lines, -2 lines 0 comments Download
M remoting/host/it2me/it2me_host_unittest.cc View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
M remoting/protocol/authenticator.h View 1 2 3 4 3 chunks +12 lines, -2 lines 0 comments Download
M remoting/protocol/jingle_session.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/protocol/validating_authenticator.h View 1 2 3 4 3 chunks +10 lines, -13 lines 0 comments Download
M remoting/protocol/validating_authenticator.cc View 1 2 3 4 5 5 chunks +33 lines, -26 lines 0 comments Download
M remoting/protocol/validating_authenticator_unittest.cc View 1 2 3 4 8 chunks +92 lines, -57 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (28 generated)
joedow
PTAL!
3 years, 9 months ago (2017-03-02 19:28:35 UTC) #4
Sergey Ulanov
https://codereview.chromium.org/2724223003/diff/20001/remoting/host/it2me/it2me_host.cc File remoting/host/it2me/it2me_host.cc (right): https://codereview.chromium.org/2724223003/diff/20001/remoting/host/it2me/it2me_host.cc#newcode520 remoting/host/it2me/it2me_host.cc:520: if (state_ != kReceivedAccessCode) { I don't think we ...
3 years, 9 months ago (2017-03-02 23:07:29 UTC) #7
joedow
PTAL! https://codereview.chromium.org/2724223003/diff/20001/remoting/host/it2me/it2me_host.cc File remoting/host/it2me/it2me_host.cc (right): https://codereview.chromium.org/2724223003/diff/20001/remoting/host/it2me/it2me_host.cc#newcode520 remoting/host/it2me/it2me_host.cc:520: if (state_ != kReceivedAccessCode) { On 2017/03/02 23:07:29, ...
3 years, 9 months ago (2017-03-13 23:26:57 UTC) #21
joedow
Ping!
3 years, 9 months ago (2017-03-15 15:37:32 UTC) #22
Sergey Ulanov
https://codereview.chromium.org/2724223003/diff/60001/remoting/host/it2me/it2me_host.cc File remoting/host/it2me/it2me_host.cc (right): https://codereview.chromium.org/2724223003/diff/60001/remoting/host/it2me/it2me_host.cc#newcode57 remoting/host/it2me/it2me_host.cc:57: bool GetUsernameFromJid(const std::string& remote_jid, Maybe use base::Optional<std::string> for the ...
3 years, 9 months ago (2017-03-15 22:25:33 UTC) #23
joedow
PTAL! https://codereview.chromium.org/2724223003/diff/60001/remoting/host/it2me/it2me_host.cc File remoting/host/it2me/it2me_host.cc (right): https://codereview.chromium.org/2724223003/diff/60001/remoting/host/it2me/it2me_host.cc#newcode57 remoting/host/it2me/it2me_host.cc:57: bool GetUsernameFromJid(const std::string& remote_jid, On 2017/03/15 22:25:33, Sergey ...
3 years, 9 months ago (2017-03-16 21:32:18 UTC) #27
kelvinp
Drive by comment, please make sure, we report the new error in our telemetry as ...
3 years, 9 months ago (2017-03-17 17:33:25 UTC) #31
joedow
The new error is translated to an existing error further up in the stack so ...
3 years, 9 months ago (2017-03-17 17:36:47 UTC) #32
joedow
Ping!
3 years, 9 months ago (2017-03-17 20:42:51 UTC) #33
Sergey Ulanov
LGTM when my comment is addressed https://codereview.chromium.org/2724223003/diff/80001/remoting/protocol/validating_authenticator.cc File remoting/protocol/validating_authenticator.cc (right): https://codereview.chromium.org/2724223003/diff/80001/remoting/protocol/validating_authenticator.cc#newcode131 remoting/protocol/validating_authenticator.cc:131: validation_callback_.Run( I think ...
3 years, 9 months ago (2017-03-17 21:11:28 UTC) #34
joedow
Thanks! https://codereview.chromium.org/2724223003/diff/80001/remoting/protocol/validating_authenticator.cc File remoting/protocol/validating_authenticator.cc (right): https://codereview.chromium.org/2724223003/diff/80001/remoting/protocol/validating_authenticator.cc#newcode131 remoting/protocol/validating_authenticator.cc:131: validation_callback_.Run( On 2017/03/17 21:11:28, Sergey Ulanov wrote: > ...
3 years, 9 months ago (2017-03-20 15:09:07 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2724223003/100001
3 years, 9 months ago (2017-03-20 15:09:36 UTC) #38
commit-bot: I haz the power
3 years, 9 months ago (2017-03-20 15:56:39 UTC) #41
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/f38c5d70b59fe17e1d3479081dd3...

Powered by Google App Engine
This is Rietveld 408576698