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

Issue 2453933008: Bugfixes in JingleSession (Closed)

Created:
4 years, 1 month ago by Sergey Ulanov
Modified:
4 years, 1 month ago
Reviewers:
kelvinp
CC:
chromium-reviews, chromoting-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Bugfixes in JingleSession 1. Previously JingleSession didn't allow transport-info messages in AUTHENTICATING state. Problem is that authentication messages may be processed asynchronously, so potentially transport-info may be received in AUTHENTICATING state even if the peer sends it in AUTHENTICATED state. Now transport-info messages are queued until authentication is finished. In future this may also allow to start transport handshake before authentication is finished. 2. Message reordering logic wasn't handling the case when the session is destroyed after one of the reordered messages. Fixed it and added test. 3. Other minor fixes: replaced std::set<> and std::list<> with std::vector<> for message queues, made PendingMessage movable. Committed: https://crrev.com/04e7784ab645b42a30304cf515efd694dddc2ba0 Cr-Commit-Position: refs/heads/master@{#428768}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -107 lines) Patch
M remoting/protocol/fake_authenticator.h View 2 chunks +11 lines, -0 lines 0 comments Download
M remoting/protocol/fake_authenticator.cc View 2 chunks +12 lines, -0 lines 0 comments Download
M remoting/protocol/jingle_session.h View 5 chunks +13 lines, -8 lines 0 comments Download
M remoting/protocol/jingle_session.cc View 10 chunks +70 lines, -50 lines 2 comments Download
M remoting/protocol/jingle_session_unittest.cc View 9 chunks +133 lines, -49 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 11 (5 generated)
Sergey Ulanov
4 years, 1 month ago (2016-10-29 06:59:11 UTC) #3
kelvinp
lgtm https://codereview.chromium.org/2453933008/diff/1/remoting/protocol/jingle_session.cc File remoting/protocol/jingle_session.cc (right): https://codereview.chromium.org/2453933008/diff/1/remoting/protocol/jingle_session.cc#newcode160 remoting/protocol/jingle_session.cc:160: JingleSession::PendingMessage::PendingMessage() = default; Out of curiosity, why is ...
4 years, 1 month ago (2016-10-31 18:23:14 UTC) #4
Sergey Ulanov
https://codereview.chromium.org/2453933008/diff/1/remoting/protocol/jingle_session.cc File remoting/protocol/jingle_session.cc (right): https://codereview.chromium.org/2453933008/diff/1/remoting/protocol/jingle_session.cc#newcode160 remoting/protocol/jingle_session.cc:160: JingleSession::PendingMessage::PendingMessage() = default; On 2016/10/31 18:23:14, kelvinp wrote: > ...
4 years, 1 month ago (2016-10-31 18:25:02 UTC) #5
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/2453933008/1
4 years, 1 month ago (2016-10-31 18:25:54 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-10-31 19:29:39 UTC) #9
commit-bot: I haz the power
4 years, 1 month ago (2016-10-31 19:49:33 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/04e7784ab645b42a30304cf515efd694dddc2ba0
Cr-Commit-Position: refs/heads/master@{#428768}

Powered by Google App Engine
This is Rietveld 408576698