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

Issue 1126403002: pub: don't start the admin server if no --admin-port flag was given. (Closed)

Created:
5 years, 7 months ago by floitsch
Modified:
5 years, 7 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

pub: don't start the admin server if no --admin-port flag was given. `pub serve` used to bind its admin port to the port below the main port. For example `pub serve --port=8081` would automatically bind its admin port to 8080. With this change the admin server is only started if an --admin-port flag was provided. BUG= http://dartbug.com/20922 R=rnystrom@google.com Committed: https://code.google.com/p/dart/source/detail?r=45614 Reverted: https://code.google.com/p/dart/source/detail?r=45633 Committed: https://code.google.com/p/dart/source/detail?r=45675

Patch Set 1 #

Total comments: 2

Patch Set 2 : Don't start admin server if not requested. #

Patch Set 3 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -14 lines) Patch
M sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart View 1 1 chunk +1 line, -5 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/command/serve.dart View 1 1 chunk +11 lines, -9 lines 0 comments Download
M sdk/lib/_internal/pub/test/serve/utils.dart View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
floitsch
5 years, 7 months ago (2015-05-06 22:14:12 UTC) #2
Bob Nystrom
https://codereview.chromium.org/1126403002/diff/1/sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart File sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart (right): https://codereview.chromium.org/1126403002/diff/1/sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart#newcode192 sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart:192: if (port == null) port = 0; Instead of ...
5 years, 7 months ago (2015-05-06 22:20:28 UTC) #3
floitsch
https://codereview.chromium.org/1126403002/diff/1/sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart File sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart (right): https://codereview.chromium.org/1126403002/diff/1/sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart#newcode192 sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart:192: if (port == null) port = 0; On 2015/05/06 ...
5 years, 7 months ago (2015-05-06 23:01:06 UTC) #4
Bob Nystrom
LGTM!
5 years, 7 months ago (2015-05-07 16:04:14 UTC) #5
floitsch
Committed patchset #2 (id:20001) manually as 45614 (presubmit successful).
5 years, 7 months ago (2015-05-07 20:02:16 UTC) #6
floitsch
Had to revert, and fix the test-file. Resubmitting.
5 years, 7 months ago (2015-05-09 02:08:20 UTC) #7
floitsch
5 years, 7 months ago (2015-05-09 02:08:42 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 45675 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698