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

Issue 16093005: [Android] Use a "unique" remote debugging socket name on bind failure (Closed)

Created:
7 years, 6 months ago by mnaganov (inactive)
Modified:
7 years, 6 months ago
Reviewers:
bulach, szym, pfeldman
CC:
chromium-reviews, cbentzel+watch_chromium.org, vsevik, jam, yurys, joi+watch-content_chromium.org, sail+watch_chromium.org, darin-cc_chromium.org, android-webview-reviews_chromium.org, jochen+watch_chromium.org
Visibility:
Public.

Description

[Android] Use a "unique" remote debugging socket name on bind failure When socket bind failure happens on enabling remote web debugging, retry using a socket name with PID suffix to ensure uniquiness. This allows several channels of Chrome to have remote web debugging enabled simultaneously. Also, this preserves backwards compatibility, as in the case of the single Chrome instance on a device, remote debugging socket name is unchanged. It seems easier to add retry functionality to UnixDomainSocket, as DevToolsHttpHandler creation is heavily asynchronous. BUG=222338 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203132

Patch Set 1 #

Total comments: 4

Patch Set 2 : Always use socket names from MakeSocketPath #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -12 lines) Patch
M android_webview/browser/aw_devtools_delegate.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/dev_tools_server.cc View 3 chunks +5 lines, -2 lines 0 comments Download
M content/shell/shell_devtools_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/unix_domain_socket_posix.h View 4 chunks +7 lines, -1 line 0 comments Download
M net/socket/unix_domain_socket_posix.cc View 6 chunks +12 lines, -5 lines 0 comments Download
M net/socket/unix_domain_socket_posix_unittest.cc View 1 3 chunks +28 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
mnaganov (inactive)
PTAL, I hope this solution is compliant to our prior discussions.
7 years, 6 months ago (2013-05-29 11:01:15 UTC) #1
pfeldman
lgtm
7 years, 6 months ago (2013-05-29 11:48:25 UTC) #2
mnaganov (inactive)
Requesting an OWNERS' review: bulach@: chrome/browser/android/ szym@: net/socket/
7 years, 6 months ago (2013-05-29 12:05:53 UTC) #3
bulach
lgtm
7 years, 6 months ago (2013-05-29 12:34:54 UTC) #4
szym
https://codereview.chromium.org/16093005/diff/1/net/socket/unix_domain_socket_posix_unittest.cc File net/socket/unix_domain_socket_posix_unittest.cc (right): https://codereview.chromium.org/16093005/diff/1/net/socket/unix_domain_socket_posix_unittest.cc#newcode265 net/socket/unix_domain_socket_posix_unittest.cc:265: kSocketFilename, "", socket_delegate_.get(), MakeAuthCallback()); Do not use kSocketFilename alone. ...
7 years, 6 months ago (2013-05-29 18:49:04 UTC) #5
mnaganov (inactive)
https://codereview.chromium.org/16093005/diff/1/net/socket/unix_domain_socket_posix_unittest.cc File net/socket/unix_domain_socket_posix_unittest.cc (right): https://codereview.chromium.org/16093005/diff/1/net/socket/unix_domain_socket_posix_unittest.cc#newcode265 net/socket/unix_domain_socket_posix_unittest.cc:265: kSocketFilename, "", socket_delegate_.get(), MakeAuthCallback()); On 2013/05/29 18:49:04, szym wrote: ...
7 years, 6 months ago (2013-05-29 20:11:10 UTC) #6
szym
https://codereview.chromium.org/16093005/diff/1/net/socket/unix_domain_socket_posix_unittest.cc File net/socket/unix_domain_socket_posix_unittest.cc (right): https://codereview.chromium.org/16093005/diff/1/net/socket/unix_domain_socket_posix_unittest.cc#newcode265 net/socket/unix_domain_socket_posix_unittest.cc:265: kSocketFilename, "", socket_delegate_.get(), MakeAuthCallback()); On 2013/05/29 20:11:11, Mikhail Naganov ...
7 years, 6 months ago (2013-05-29 20:13:53 UTC) #7
mnaganov (inactive)
https://codereview.chromium.org/16093005/diff/1/net/socket/unix_domain_socket_posix_unittest.cc File net/socket/unix_domain_socket_posix_unittest.cc (right): https://codereview.chromium.org/16093005/diff/1/net/socket/unix_domain_socket_posix_unittest.cc#newcode265 net/socket/unix_domain_socket_posix_unittest.cc:265: kSocketFilename, "", socket_delegate_.get(), MakeAuthCallback()); On 2013/05/29 20:13:53, szym wrote: ...
7 years, 6 months ago (2013-05-29 20:37:11 UTC) #8
szym
lgtm
7 years, 6 months ago (2013-05-29 20:38:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/16093005/16001
7 years, 6 months ago (2013-05-30 06:03:25 UTC) #10
commit-bot: I haz the power
7 years, 6 months ago (2013-05-30 12:38:41 UTC) #11
Message was sent while issue was closed.
Change committed as 203132

Powered by Google App Engine
This is Rietveld 408576698