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

Issue 2784463004: Mojo EDK: Avoid redundant queueing when sending to unknown peers (Closed)

Created:
3 years, 8 months ago by Ken Rockot(use gerrit already)
Modified:
3 years, 8 months ago
Reviewers:
yzshen1
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo EDK: Avoid redundant queueing when sending to unknown peers NodeController::SendPeerMessage queues outgoing messages if it doesn't know the destination node, unless in the broker process where this condition must mean the destination is no longer (or perhaps never was) valid. In the client process case, we almost always end up needing to request an introduction from the broker in each SendPeerMessage call. This means that in both the client and broker process cases, we almost always need to attempt to acquire a handle to the broker NodeChannel anyway. This CL does that and drops out early if we're in the broker process, avoiding unnecessary queueing of undeliverable messages. BUG=None Review-Url: https://codereview.chromium.org/2784463004 Cr-Commit-Position: refs/heads/master@{#460163} Committed: https://chromium.googlesource.com/chromium/src/+/4e3eedb01d42a459acc405e87e7a0a72ca9c71b8

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -14 lines) Patch
M mojo/edk/system/node_controller.cc View 2 chunks +11 lines, -14 lines 0 comments Download

Messages

Total messages: 11 (7 generated)
Ken Rockot(use gerrit already)
PTAL - small cleanup from yesterday's patch
3 years, 8 months ago (2017-03-28 16:40:01 UTC) #4
yzshen1
lgtm
3 years, 8 months ago (2017-03-28 16:43:59 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/2784463004/1
3 years, 8 months ago (2017-03-28 16:44:22 UTC) #8
commit-bot: I haz the power
3 years, 8 months ago (2017-03-28 17:54:18 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/4e3eedb01d42a459acc405e87e7a...

Powered by Google App Engine
This is Rietveld 408576698