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

Issue 2814773004: Various fixes for sync socket implementation. (Closed)

Created:
3 years, 8 months ago by bkonyi
Modified:
3 years, 8 months ago
Reviewers:
zra, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Various fixes for sync socket implementation. Revert "Revert "Added sync_socket.h include in sync_socket_win.cc"" This reverts commit 2bd6168e1ebf35f6dbd9b2724339362c493377fc. Revert "Revert "Added synchronous socket implementation to dart:io."" This reverts commit a47bce03f5502dac7fb12e777e87b5aa1cfc830b. BUG= R=zra@google.com Committed: https://github.com/dart-lang/sdk/commit/6fbdd19ddb8cc5c9bb38fb1cd910c232a3999d28

Patch Set 1 #

Total comments: 10

Patch Set 2 : Various fixes for sync socket implementation. #

Patch Set 3 : Addressed comments from Siva in prior review #

Total comments: 4

Patch Set 4 : Various fixes for sync socket implementation. #

Total comments: 5

Patch Set 5 : Removed extra Dart_TypedDataReleaseData #

Patch Set 6 : Various fixes for sync socket implementation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1804 lines, -45 lines) Patch
M pkg/dev_compiler/tool/input_sdk/patch/io_patch.dart View 1 chunk +8 lines, -0 lines 0 comments Download
M runtime/bin/io_impl_sources.gypi View 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/bin/io_natives.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M runtime/bin/io_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/socket_android.cc View 1 chunk +2 lines, -9 lines 0 comments Download
M runtime/bin/socket_fuchsia.cc View 1 chunk +2 lines, -13 lines 0 comments Download
M runtime/bin/socket_linux.cc View 1 chunk +2 lines, -12 lines 0 comments Download
M runtime/bin/socket_macos.cc View 1 chunk +2 lines, -11 lines 0 comments Download
M runtime/bin/socket_unsupported.cc View 1 chunk +1 line, -0 lines 0 comments Download
A runtime/bin/sync_socket.h View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A runtime/bin/sync_socket.cc View 1 2 3 4 5 1 chunk +365 lines, -0 lines 0 comments Download
A runtime/bin/sync_socket_android.cc View 1 chunk +80 lines, -0 lines 0 comments Download
A runtime/bin/sync_socket_fuchsia.cc View 1 chunk +80 lines, -0 lines 0 comments Download
A runtime/bin/sync_socket_linux.cc View 1 chunk +80 lines, -0 lines 0 comments Download
A runtime/bin/sync_socket_macos.cc View 1 chunk +77 lines, -0 lines 0 comments Download
A runtime/bin/sync_socket_patch.dart View 1 chunk +347 lines, -0 lines 0 comments Download
A runtime/bin/sync_socket_win.cc View 1 chunk +78 lines, -0 lines 0 comments Download
M sdk/lib/_internal/js_runtime/lib/io_patch.dart View 1 chunk +8 lines, -0 lines 0 comments Download
M sdk/lib/io/io.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/io/io_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A sdk/lib/io/sync_socket.dart View 1 chunk +108 lines, -0 lines 0 comments Download
A tests/standalone/io/raw_synchronous_socket_test.dart View 1 1 chunk +493 lines, -0 lines 0 comments Download
M tests/standalone/standalone.status View 1 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (3 generated)
bkonyi
https://codereview.chromium.org/2814773004/diff/1/runtime/bin/socket_android.cc File runtime/bin/socket_android.cc (left): https://codereview.chromium.org/2814773004/diff/1/runtime/bin/socket_android.cc#oldcode10 runtime/bin/socket_android.cc:10: #include <errno.h> // NOLINT errno was missing from last ...
3 years, 8 months ago (2017-04-12 17:26:58 UTC) #2
zra
https://codereview.chromium.org/2814773004/diff/1/tests/standalone/io/raw_synchronous_socket_test.dart File tests/standalone/io/raw_synchronous_socket_test.dart (right): https://codereview.chromium.org/2814773004/diff/1/tests/standalone/io/raw_synchronous_socket_test.dart#newcode28 tests/standalone/io/raw_synchronous_socket_test.dart:28: void testInvalidConnect() { A longer explanation here would be ...
3 years, 8 months ago (2017-04-12 17:40:41 UTC) #3
bkonyi
Comments addressed. PTAL. https://codereview.chromium.org/2814773004/diff/1/tests/standalone/io/raw_synchronous_socket_test.dart File tests/standalone/io/raw_synchronous_socket_test.dart (right): https://codereview.chromium.org/2814773004/diff/1/tests/standalone/io/raw_synchronous_socket_test.dart#newcode28 tests/standalone/io/raw_synchronous_socket_test.dart:28: void testInvalidConnect() { On 2017/04/12 17:40:41, ...
3 years, 8 months ago (2017-04-12 17:55:02 UTC) #4
bkonyi
+Siva. I've addressed the comments from the original CL here: https://codereview.chromium.org/2803543006/. PTAL when you have ...
3 years, 8 months ago (2017-04-12 18:22:17 UTC) #6
zra
https://codereview.chromium.org/2814773004/diff/40001/runtime/bin/sync_socket.cc File runtime/bin/sync_socket.cc (right): https://codereview.chromium.org/2814773004/diff/40001/runtime/bin/sync_socket.cc#newcode152 runtime/bin/sync_socket.cc:152: Dart_SetReturnValue(args, DartUtils::NewDartOSError(&os_error)); I think you misunderstood asiva's comment here. ...
3 years, 8 months ago (2017-04-12 19:44:22 UTC) #7
bkonyi
Fixed issues brought up by Zach. PTAL. https://codereview.chromium.org/2814773004/diff/40001/runtime/bin/sync_socket.cc File runtime/bin/sync_socket.cc (right): https://codereview.chromium.org/2814773004/diff/40001/runtime/bin/sync_socket.cc#newcode152 runtime/bin/sync_socket.cc:152: Dart_SetReturnValue(args, DartUtils::NewDartOSError(&os_error)); ...
3 years, 8 months ago (2017-04-12 19:59:22 UTC) #8
bkonyi
https://codereview.chromium.org/2814773004/diff/60001/runtime/bin/sync_socket.cc File runtime/bin/sync_socket.cc (right): https://codereview.chromium.org/2814773004/diff/60001/runtime/bin/sync_socket.cc#newcode148 runtime/bin/sync_socket.cc:148: Dart_TypedDataReleaseData(buffer_obj); Forgot to remove this here... Removed in next ...
3 years, 8 months ago (2017-04-12 20:13:52 UTC) #9
zra
https://codereview.chromium.org/2814773004/diff/60001/runtime/bin/sync_socket.cc File runtime/bin/sync_socket.cc (right): https://codereview.chromium.org/2814773004/diff/60001/runtime/bin/sync_socket.cc#newcode148 runtime/bin/sync_socket.cc:148: Dart_TypedDataReleaseData(buffer_obj); you can remove this one. https://codereview.chromium.org/2814773004/diff/60001/runtime/bin/sync_socket.cc#newcode184 runtime/bin/sync_socket.cc:184: return; ...
3 years, 8 months ago (2017-04-12 20:26:28 UTC) #10
bkonyi
https://codereview.chromium.org/2814773004/diff/60001/runtime/bin/sync_socket.cc File runtime/bin/sync_socket.cc (right): https://codereview.chromium.org/2814773004/diff/60001/runtime/bin/sync_socket.cc#newcode148 runtime/bin/sync_socket.cc:148: Dart_TypedDataReleaseData(buffer_obj); On 2017/04/12 20:26:28, zra wrote: > you can ...
3 years, 8 months ago (2017-04-12 20:37:02 UTC) #11
zra
lgtm
3 years, 8 months ago (2017-04-12 20:41:10 UTC) #12
bkonyi
3 years, 8 months ago (2017-04-12 21:20:57 UTC) #14
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
6fbdd19ddb8cc5c9bb38fb1cd910c232a3999d28 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698