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

Issue 2911663004: [Chromoting] Drop unordered messages instead of crashing

Created:
3 years, 6 months ago by Hzj_jie
Modified:
3 years, 6 months ago
Reviewers:
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromoting] Drop unordered messages instead of crashing This issue happens on my laptop as well as a virtual machine, which indicates a broader impact. Though the reason of receiving unordered messages is still unknown, fixing it from the host side is still useful. Loggically speaking this change does not impact the behavior in release build: instead of wasting some memory, we won't be able to retrieve the unordered messages anyway. BUG=694083

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -4 lines) Patch
M remoting/protocol/jingle_session.cc View 1 chunk +7 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (20 generated)
Hzj_jie
3 years, 6 months ago (2017-05-26 20:11:30 UTC) #16
Sergey Ulanov
I think we should understand the root cause. Signaling service may deliver messages out-of-order. OrderedMessageQueue ...
3 years, 6 months ago (2017-05-30 19:03:09 UTC) #21
Hzj_jie
On 2017/05/30 19:03:09, Sergey Ulanov wrote: > I think we should understand the root cause. ...
3 years, 6 months ago (2017-05-30 23:22:51 UTC) #22
Hzj_jie
On 2017/05/30 23:22:51, Hzj_jie wrote: > On 2017/05/30 19:03:09, Sergey Ulanov wrote: > > I ...
3 years, 6 months ago (2017-06-13 22:17:32 UTC) #23
Sergey Ulanov
On 2017/06/13 22:17:32, Hzj_jie wrote: > On 2017/05/30 23:22:51, Hzj_jie wrote: > > On 2017/05/30 ...
3 years, 6 months ago (2017-06-14 23:35:12 UTC) #24
Hzj_jie
3 years, 6 months ago (2017-06-14 23:36:50 UTC) #25
On 2017/06/14 23:35:12, Sergey Ulanov wrote:
> On 2017/06/13 22:17:32, Hzj_jie wrote:
> > On 2017/05/30 23:22:51, Hzj_jie wrote:
> > > On 2017/05/30 19:03:09, Sergey Ulanov wrote:
> > > > I think we should understand the root cause. Signaling service may
deliver
> > > > messages out-of-order. OrderedMessageQueue is designed to reorder
messages
> > to
> > > > match the order on the sender side. It's implemented with an assumption
> that
> > > the
> > > > client will wait response to the first message before sending another
one.
> > > > If you can reproduce this issue can you the capture the messages that
the
> > host
> > > > receives? (debug build of the host logs it in the console) 
> > > > This patch looks good to me, but I'd like to understand why we need it.
> > > 
> > > Sure. But it's not a very consistent behavior, I will attach log to the
bug
> > once
> > > I have got a reproduce.
> > 
> > A reproduce has been caught and the bug is updated.
> 
> Please see my comment in that bug. I think this DCHECK is still valid. Problem
> is that the queue is not intialized properly after the first session-initate
> message

Kelvin is fixing the issue, so this change should be deprecated. Sorry about
forgetting closing this change.

Powered by Google App Engine
This is Rietveld 408576698