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

Issue 1557753002: Fix assumption in mojo binding class Connector that message pipes notice the other end's closing sy… (Closed)

Created:
4 years, 11 months ago by jam
Modified:
4 years, 11 months ago
Reviewers:
yzshen1
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix assumption in mojo binding class Connector that message pipes notice the other end's closing synchronously. This was causing mojo_public_bindings_unittests' MultiplexRouterTest.BasicRequestResponse and MultiplexRouterTest.RequestWithNoReceiver to fail with the new EDK. The problem is that in Connector::HandleError message_pipe_ is reset to a dummy message pipe whose other end is closed immediately. In the old EDK, the live end notices that the peer is closed synchronously. In the new EDK this happens asynchronously because of thread hops to the IO thread. The fix is to simply ensure we don't watch the message pipe handle twice (since it's not cancelled immediately). BUG=561803 Committed: https://crrev.com/b0c8bd36ad840b609050caee081fa73e0e212559 Cr-Commit-Position: refs/heads/master@{#367327}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M mojo/public/cpp/bindings/lib/connector.cc View 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 11 (6 generated)
jam
4 years, 11 months ago (2016-01-04 15:14:58 UTC) #3
yzshen1
LGTM
4 years, 11 months ago (2016-01-04 18:08:10 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1557753002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1557753002/20001
4 years, 11 months ago (2016-01-04 18:10:34 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:20001)
4 years, 11 months ago (2016-01-04 18:16:24 UTC) #9
commit-bot: I haz the power
4 years, 11 months ago (2016-01-04 18:17:11 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/b0c8bd36ad840b609050caee081fa73e0e212559
Cr-Commit-Position: refs/heads/master@{#367327}

Powered by Google App Engine
This is Rietveld 408576698