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

Issue 14640008: Change the signature for all network bind calls. (Closed)

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

Description

Change the signature for all network bind calls. All the bind calls on RawServerSocket, ServerSocket, RawSecureServerSocket, SecureServerSocket and HttpServer (and bindSecure on HttpServer) now have mandatory address and port parameters. All the rest of the parameters are named optional (including backlog). The address parameter can be an InternetAddress or a String for all these calls. R=ajohnsen@google.com, whesse@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=22227

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed review comments from ajohnsen@ #

Patch Set 3 : Updated comments with IPv6 info #

Total comments: 16

Patch Set 4 : Addressed review comments by whesse@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+283 lines, -213 lines) Patch
M pkg/http/test/safe_http_server.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/socket_patch.dart View 1 2 chunks +6 lines, -6 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/io_patch.dart View 1 chunk +6 lines, -6 lines 0 comments Download
M sdk/lib/io/http.dart View 1 2 3 3 chunks +50 lines, -18 lines 0 comments Download
M sdk/lib/io/http_impl.dart View 1 1 chunk +5 lines, -5 lines 0 comments Download
M sdk/lib/io/secure_server_socket.dart View 4 chunks +43 lines, -17 lines 0 comments Download
M sdk/lib/io/socket.dart View 1 2 3 5 chunks +46 lines, -24 lines 0 comments Download
M tests/standalone/io/http_10_test.dart View 4 chunks +4 lines, -4 lines 0 comments Download
M tests/standalone/io/http_advanced_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_auth_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_basic_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_body_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/io/http_client_connect_test.dart View 5 chunks +5 lines, -5 lines 0 comments Download
M tests/standalone/io/http_client_request_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_close_test.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M tests/standalone/io/http_compression_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/io/http_connection_close_test.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M tests/standalone/io/http_connection_header_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_content_length_test.dart View 4 chunks +4 lines, -4 lines 0 comments Download
M tests/standalone/io/http_detach_socket_test.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M tests/standalone/io/http_head_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_headers_state_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_proxy_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/io/http_read_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_redirect_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_request_pipeling_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_server_early_client_close_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_server_response_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_server_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_session_test.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M tests/standalone/io/http_shutdown_test.dart View 5 chunks +5 lines, -5 lines 0 comments Download
M tests/standalone/io/raw_secure_server_closing_test.dart View 4 chunks +5 lines, -5 lines 0 comments Download
M tests/standalone/io/raw_secure_server_socket_test.dart View 1 2 3 8 chunks +9 lines, -10 lines 0 comments Download
M tests/standalone/io/raw_server_socket_cancel_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/raw_socket_test.dart View 10 chunks +12 lines, -12 lines 0 comments Download
M tests/standalone/io/raw_socket_write_destroy_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/io/regress_8828_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/secure_client_raw_server_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M tests/standalone/io/secure_client_server_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M tests/standalone/io/secure_multiple_client_server_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M tests/standalone/io/secure_server_client_certificate_test.dart View 4 chunks +0 lines, -4 lines 0 comments Download
M tests/standalone/io/secure_server_closing_test.dart View 4 chunks +5 lines, -5 lines 0 comments Download
M tests/standalone/io/secure_server_socket_test.dart View 8 chunks +8 lines, -9 lines 0 comments Download
M tests/standalone/io/secure_session_resume_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M tests/standalone/io/socket_close_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/socket_exception_test.dart View 10 chunks +10 lines, -10 lines 0 comments Download
M tests/standalone/io/socket_info_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/socket_invalid_arguments_test.dart View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/io/socket_ipv6_test.dart View 4 chunks +4 lines, -4 lines 0 comments Download
M tests/standalone/io/socket_port_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/socket_test.dart View 11 chunks +12 lines, -12 lines 0 comments Download
M tests/standalone/io/socket_upgrade_to_secure_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/testing_server.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/web_socket_test.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Søren Gjesse
7 years, 7 months ago (2013-04-30 14:30:57 UTC) #1
Anders Johnsen
LGTM https://codereview.chromium.org/14640008/diff/1/runtime/bin/socket_patch.dart File runtime/bin/socket_patch.dart (right): https://codereview.chromium.org/14640008/diff/1/runtime/bin/socket_patch.dart#newcode9 runtime/bin/socket_patch.dart:9: if (address == null) address = InternetAddress.LOOPBACK_IP_V4; No ...
7 years, 7 months ago (2013-05-01 07:50:19 UTC) #2
Søren Gjesse
https://codereview.chromium.org/14640008/diff/1/runtime/bin/socket_patch.dart File runtime/bin/socket_patch.dart (right): https://codereview.chromium.org/14640008/diff/1/runtime/bin/socket_patch.dart#newcode9 runtime/bin/socket_patch.dart:9: if (address == null) address = InternetAddress.LOOPBACK_IP_V4; On 2013/05/01 ...
7 years, 7 months ago (2013-05-01 07:55:20 UTC) #3
Søren Gjesse
Updated comments with IPv6 info.
7 years, 7 months ago (2013-05-01 08:22:10 UTC) #4
Anders Johnsen
LGTM, thanks Soeren!
7 years, 7 months ago (2013-05-01 08:46:12 UTC) #5
Bill Hesse
LGTM. https://codereview.chromium.org/14640008/diff/7001/sdk/lib/io/http.dart File sdk/lib/io/http.dart (right): https://codereview.chromium.org/14640008/diff/7001/sdk/lib/io/http.dart#newcode731 sdk/lib/io/http.dart:731: * HTTP response to be send back to ...
7 years, 7 months ago (2013-05-01 08:57:06 UTC) #6
Søren Gjesse
https://codereview.chromium.org/14640008/diff/7001/sdk/lib/io/http.dart File sdk/lib/io/http.dart (right): https://codereview.chromium.org/14640008/diff/7001/sdk/lib/io/http.dart#newcode731 sdk/lib/io/http.dart:731: * HTTP response to be send back to the ...
7 years, 7 months ago (2013-05-01 09:06:42 UTC) #7
Søren Gjesse
7 years, 7 months ago (2013-05-01 09:14:35 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 manually as r22227 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698