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

Issue 1061903002: Disable chromoting service on permanent errors. (Closed)

Created:
5 years, 8 months ago by weitao
Modified:
5 years, 8 months ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop the daemon process from repeatedly starting up and shutting down the network process when the host has been unregistered. We have two bugs in the chromoting host that caused the repeated startup and shutdown of the network process when the host has be unregistered: 1. The host process never exits naturally. As a result, the WorkerProcessLauncher in the daemon process never receives the exit code and thus isn't aware that a "permanent" error occured. 2. If a host has service account enabled, it gets kInvalidOauthCredentialsExitCode instead of kInvalidHostIdExitCode if the host has been unregistered in the service directory. But we only disable the service upon the latter. Issue 1 is a regression from https://codereview.chromium.org/891663005 which added a dangling reference to the UrlRequestContextGetterin HostProcessMain. This leaked object will also keep the Network task runner, and thus the UI task runner alive. So the message loop in HostProcessMain never quits. I created crbug.com/475213 to track the original DCHECK. BUG=472884 Committed: https://crrev.com/82a08f2840b6fdab51581818b4bbec07719541e3 Cr-Commit-Position: refs/heads/master@{#324377}

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : Reimplement the fix #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -11 lines) Patch
M remoting/host/daemon_process.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M remoting/host/daemon_process_win.cc View 1 2 3 1 chunk +10 lines, -4 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 1 chunk +0 lines, -7 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
weitao
Sergey PTAL. Note that the CL is not complete yet. I still need to fix ...
5 years, 8 months ago (2015-04-07 19:05:59 UTC) #2
Sergey Ulanov
What's the reason we need ChromotingNetworkDaemonMsg_HostShutdown? Can it be removed? We have two different mechanisms ...
5 years, 8 months ago (2015-04-07 21:31:51 UTC) #3
Sergey Ulanov
Looking at the code once again I think ChromotingNetworkDaemonMsg_HostShutdown may be useful, but I do ...
5 years, 8 months ago (2015-04-07 21:50:18 UTC) #4
weitao
PTAL.
5 years, 8 months ago (2015-04-08 21:21:34 UTC) #5
Sergey Ulanov
lgtm
5 years, 8 months ago (2015-04-09 01:06:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1061903002/60001
5 years, 8 months ago (2015-04-09 03:50:57 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-09 04:50:17 UTC) #9
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 04:52:11 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/82a08f2840b6fdab51581818b4bbec07719541e3
Cr-Commit-Position: refs/heads/master@{#324377}

Powered by Google App Engine
This is Rietveld 408576698