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

Issue 18051018: Make host_forwarder better handle duplicate forwards. (Closed)

Created:
7 years, 5 months ago by Philippe
Modified:
7 years, 5 months ago
Reviewers:
bulach, digit1
CC:
chromium-reviews, craigdh+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, frankf+watch_chromium.org
Visibility:
Public.

Description

Make host_forwarder better handle duplicate forwards. host_forwarder used to rely on device_forwarder to handle requests that map already forwarded ports. The problem is that device_forwarder was closing and re-creating the connection to handle such requests. This could make some tests fail (e.g. python driven tests) if they were trying to forward an already forwarded port. BUG=242846 R=bulach@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210557

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address Marcus' comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M tools/android/forwarder2/host_forwarder_main.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Philippe
Hi Marcus, I believe this will fix the python-driven tests downstream. I intend to reland ...
7 years, 5 months ago (2013-07-08 13:58:27 UTC) #1
bulach
lgtm, small suggestion below: https://chromiumcodereview.appspot.com/18051018/diff/1/tools/android/forwarder2/host_forwarder_main.cc File tools/android/forwarder2/host_forwarder_main.cc (right): https://chromiumcodereview.appspot.com/18051018/diff/1/tools/android/forwarder2/host_forwarder_main.cc#newcode140 tools/android/forwarder2/host_forwarder_main.cc:140: // The port is already ...
7 years, 5 months ago (2013-07-08 14:35:36 UTC) #2
Philippe
https://chromiumcodereview.appspot.com/18051018/diff/1/tools/android/forwarder2/host_forwarder_main.cc File tools/android/forwarder2/host_forwarder_main.cc (right): https://chromiumcodereview.appspot.com/18051018/diff/1/tools/android/forwarder2/host_forwarder_main.cc#newcode140 tools/android/forwarder2/host_forwarder_main.cc:140: // The port is already forwarded. On 2013/07/08 14:35:36, ...
7 years, 5 months ago (2013-07-08 15:47:49 UTC) #3
Philippe
https://chromiumcodereview.appspot.com/18051018/diff/1/tools/android/forwarder2/host_forwarder_main.cc File tools/android/forwarder2/host_forwarder_main.cc (right): https://chromiumcodereview.appspot.com/18051018/diff/1/tools/android/forwarder2/host_forwarder_main.cc#newcode140 tools/android/forwarder2/host_forwarder_main.cc:140: // The port is already forwarded. On 2013/07/08 15:47:50, ...
7 years, 5 months ago (2013-07-08 17:00:38 UTC) #4
bulach
lgtm https://codereview.chromium.org/18051018/diff/1/tools/android/forwarder2/host_forwarder_main.cc File tools/android/forwarder2/host_forwarder_main.cc (right): https://codereview.chromium.org/18051018/diff/1/tools/android/forwarder2/host_forwarder_main.cc#newcode140 tools/android/forwarder2/host_forwarder_main.cc:140: // The port is already forwarded. On 2013/07/08 ...
7 years, 5 months ago (2013-07-08 17:40:35 UTC) #5
Philippe
On 2013/07/08 17:40:35, bulach wrote: > lgtm > > https://codereview.chromium.org/18051018/diff/1/tools/android/forwarder2/host_forwarder_main.cc > File tools/android/forwarder2/host_forwarder_main.cc (right): > ...
7 years, 5 months ago (2013-07-09 08:06:04 UTC) #6
Philippe
7 years, 5 months ago (2013-07-09 14:10:23 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 manually as r210557 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698