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

Issue 9965053: Add a new attachTo method to HttpServer, for using an existing ServerSocket. (Closed)

Created:
8 years, 8 months ago by Anders Johnsen
Modified:
8 years, 8 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add a new attachTo method to HttpServer, for using an existing ServerSocket. Committed: https://code.google.com/p/dart/source/detail?r=6082

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Total comments: 5

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -8 lines) Patch
M runtime/bin/http.dart View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/bin/http_impl.dart View 1 2 3 4 5 6 7 2 chunks +23 lines, -8 lines 0 comments Download
A tests/standalone/src/io/HttpServerTest.dart View 1 2 3 4 5 6 7 1 chunk +64 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Anders Johnsen
8 years, 8 months ago (2012-04-02 07:27:07 UTC) #1
Søren Gjesse
https://chromiumcodereview.appspot.com/9965053/diff/1/runtime/bin/http.dart File runtime/bin/http.dart (right): https://chromiumcodereview.appspot.com/9965053/diff/1/runtime/bin/http.dart#newcode76 runtime/bin/http.dart:76: void attachTo(ServerSocket serverSocket); How about calling this listenOn? https://chromiumcodereview.appspot.com/9965053/diff/1/runtime/bin/http_impl.dart ...
8 years, 8 months ago (2012-04-02 07:32:41 UTC) #2
Anders Johnsen
Removed some lines I didn't intend for this commit.
8 years, 8 months ago (2012-04-02 07:33:21 UTC) #3
Anders Johnsen
Updated. https://chromiumcodereview.appspot.com/9965053/diff/1/runtime/bin/http.dart File runtime/bin/http.dart (right): https://chromiumcodereview.appspot.com/9965053/diff/1/runtime/bin/http.dart#newcode76 runtime/bin/http.dart:76: void attachTo(ServerSocket serverSocket); On 2012/04/02 07:32:41, Søren Gjesse ...
8 years, 8 months ago (2012-04-02 07:36:52 UTC) #4
Søren Gjesse
Please add a test using this new method. https://chromiumcodereview.appspot.com/9965053/diff/3001/runtime/bin/http.dart File runtime/bin/http.dart (right): https://chromiumcodereview.appspot.com/9965053/diff/3001/runtime/bin/http.dart#newcode76 runtime/bin/http.dart:76: void ...
8 years, 8 months ago (2012-04-02 07:42:15 UTC) #5
Anders Johnsen
Added a test file. https://chromiumcodereview.appspot.com/9965053/diff/3001/runtime/bin/http_impl.dart File runtime/bin/http_impl.dart (right): https://chromiumcodereview.appspot.com/9965053/diff/3001/runtime/bin/http_impl.dart#newcode632 runtime/bin/http_impl.dart:632: _HttpServer() : On 2012/04/02 07:42:15, ...
8 years, 8 months ago (2012-04-02 08:12:34 UTC) #6
Søren Gjesse
lgtm https://chromiumcodereview.appspot.com/9965053/diff/2008/runtime/bin/http_impl.dart File runtime/bin/http_impl.dart (right): https://chromiumcodereview.appspot.com/9965053/diff/2008/runtime/bin/http_impl.dart#newcode667 runtime/bin/http_impl.dart:667: int get port() => _server === null ? ...
8 years, 8 months ago (2012-04-02 08:16:45 UTC) #7
Anders Johnsen
8 years, 8 months ago (2012-04-02 08:24:34 UTC) #8
Committing.

https://chromiumcodereview.appspot.com/9965053/diff/2008/runtime/bin/http_imp...
File runtime/bin/http_impl.dart (right):

https://chromiumcodereview.appspot.com/9965053/diff/2008/runtime/bin/http_imp...
runtime/bin/http_impl.dart:667: int get port() => _server === null ? -1 :
_server.port;
On 2012/04/02 08:16:45, Søren Gjesse wrote:
> How about throwing an exception if the server has no socket?

Even better! :)

Powered by Google App Engine
This is Rietveld 408576698