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

Issue 993743002: Recover gracefully if a matching port is unavailable. (Closed)

Created:
5 years, 9 months ago by nweiz
Modified:
5 years, 9 months ago
Reviewers:
skybrian, Bob Nystrom
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/http_multi_server@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Recover gracefully if a matching port is unavailable. R=rnystrom@google.com BUG=dartbug.com/22673 Committed: https://github.com/dart-lang/http_multi_server/commit/1988391c5ca63571171886a27f4c60044930c87a

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -1 line) Patch
M CHANGELOG.md View 1 chunk +5 lines, -0 lines 0 comments Download
M lib/http_multi_server.dart View 2 chunks +19 lines, -0 lines 2 comments Download
M pubspec.yaml View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
nweiz
5 years, 9 months ago (2015-03-09 21:35:35 UTC) #1
Bob Nystrom
LGTM! Don't forget to tag and publish.
5 years, 9 months ago (2015-03-09 22:02:55 UTC) #2
nweiz
Committed patchset #1 (id:1) manually as 1988391c5ca63571171886a27f4c60044930c87a (presubmit successful).
5 years, 9 months ago (2015-03-09 22:03:29 UTC) #3
skybrian
https://codereview.chromium.org/993743002/diff/1/lib/http_multi_server.dart File lib/http_multi_server.dart (right): https://codereview.chromium.org/993743002/diff/1/lib/http_multi_server.dart#newcode155 lib/http_multi_server.dart:155: return _loopback(port, bind); Retrying forever will cause the program ...
5 years, 9 months ago (2015-03-09 22:34:57 UTC) #5
nweiz
5 years, 9 months ago (2015-03-09 23:38:15 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/993743002/diff/1/lib/http_multi_server.dart
File lib/http_multi_server.dart (right):

https://codereview.chromium.org/993743002/diff/1/lib/http_multi_server.dart#n...
lib/http_multi_server.dart:155: return _loopback(port, bind);
On 2015/03/09 22:34:57, skybrian wrote:
> Retrying forever will cause the program to spin when something has gone
terribly
> wrong and ports are *really* scarce. I don't think this is too likely in
> practice, but a general rule of thumb with network programming is that it's
> better to exit with an error after a few retries, to avoid making severe
> congestion worse.
> 
> (Or possibly back off by waiting increasingly longer before retrying, but that
> seems overly fancy and would result in mysterious delays rather than a clear
> error.)

https://codereview.chromium.org/992843002/

Powered by Google App Engine
This is Rietveld 408576698