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

Issue 1323943003: Extract meta data about open sockets into separate class. (Closed)

Created:
5 years, 3 months ago by ricow1
Modified:
5 years, 3 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org, turnidge, rmacnak, Cutch, vm-dev_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Extract meta data about open sockets into separate class. The current implementation only has information about tcp and udp sockets, and we explicitly do not track internal and pipe uses of _NativeSockets. The testing of this is done through the service layer, which is the end user of this. BUG= R=sgjesse@google.com Committed: https://github.com/dart-lang/sdk/commit/01eff8ce18be7eceb6ce0be1097005965edf2588 Committed: https://github.com/dart-lang/sdk/commit/06ab2bdbdda2ad1696a842ea44d8fd0d38106f7f

Patch Set 1 #

Total comments: 25

Patch Set 2 : address comments #

Patch Set 3 : address comments #

Total comments: 1

Patch Set 4 : windows timer and warnings #

Patch Set 5 : small fixes #

Patch Set 6 : be more lax for number of writes and reads #

Total comments: 2

Patch Set 7 : extract check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+477 lines, -151 lines) Patch
M runtime/bin/socket_patch.dart View 1 2 20 chunks +67 lines, -151 lines 0 comments Download
A runtime/observatory/tests/service/tcp_socket_service_test.dart View 1 2 3 4 5 6 1 chunk +175 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/udp_socket_service_test.dart View 1 2 3 4 5 1 chunk +82 lines, -0 lines 0 comments Download
M sdk/lib/io/io.dart View 2 chunks +2 lines, -0 lines 0 comments Download
A sdk/lib/io/io_resource_info.dart View 1 2 3 1 chunk +150 lines, -0 lines 0 comments Download
M sdk/lib/io/iolib_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
ricow1
I don't know yet if this is the actual structure that John wants the data ...
5 years, 3 months ago (2015-09-01 12:06:25 UTC) #2
Søren Gjesse
lgtm, with comments https://codereview.chromium.org/1323943003/diff/1/runtime/bin/socket_patch.dart File runtime/bin/socket_patch.dart (right): https://codereview.chromium.org/1323943003/diff/1/runtime/bin/socket_patch.dart#newcode437 runtime/bin/socket_patch.dart:437: setupResourceInfo(socket); Shouldn't this move down to ...
5 years, 3 months ago (2015-09-02 09:07:50 UTC) #3
ricow1
More questions than answers :-) PTAL https://codereview.chromium.org/1323943003/diff/1/runtime/bin/socket_patch.dart File runtime/bin/socket_patch.dart (right): https://codereview.chromium.org/1323943003/diff/1/runtime/bin/socket_patch.dart#newcode437 runtime/bin/socket_patch.dart:437: setupResourceInfo(socket); On 2015/09/02 ...
5 years, 3 months ago (2015-09-02 10:45:42 UTC) #4
Søren Gjesse
lgtm https://codereview.chromium.org/1323943003/diff/1/runtime/bin/socket_patch.dart File runtime/bin/socket_patch.dart (right): https://codereview.chromium.org/1323943003/diff/1/runtime/bin/socket_patch.dart#newcode578 runtime/bin/socket_patch.dart:578: if (!isInternal && !isPipe) { On 2015/09/02 10:45:42, ...
5 years, 3 months ago (2015-09-02 12:24:50 UTC) #5
ricow1
Thank you https://codereview.chromium.org/1323943003/diff/1/runtime/bin/socket_patch.dart File runtime/bin/socket_patch.dart (right): https://codereview.chromium.org/1323943003/diff/1/runtime/bin/socket_patch.dart#newcode578 runtime/bin/socket_patch.dart:578: if (!isInternal && !isPipe) { On 2015/09/02 ...
5 years, 3 months ago (2015-09-02 12:45:50 UTC) #6
ricow1
Committed patchset #3 (id:40001) manually as 01eff8ce18be7eceb6ce0be1097005965edf2588 (presubmit successful).
5 years, 3 months ago (2015-09-02 13:26:45 UTC) #7
ricow1
PTAL, I am now more lax with regards to number or reads and writes, since ...
5 years, 3 months ago (2015-09-03 12:30:23 UTC) #8
Søren Gjesse
lgtm https://codereview.chromium.org/1323943003/diff/90001/runtime/observatory/tests/service/tcp_socket_service_test.dart File runtime/observatory/tests/service/tcp_socket_service_test.dart (right): https://codereview.chromium.org/1323943003/diff/90001/runtime/observatory/tests/service/tcp_socket_service_test.dart#newcode53 runtime/observatory/tests/service/tcp_socket_service_test.dart:53: // Stopwatch resolution on windows makes us sometimes ...
5 years, 3 months ago (2015-09-03 12:39:42 UTC) #9
ricow1
https://codereview.chromium.org/1323943003/diff/90001/runtime/observatory/tests/service/tcp_socket_service_test.dart File runtime/observatory/tests/service/tcp_socket_service_test.dart (right): https://codereview.chromium.org/1323943003/diff/90001/runtime/observatory/tests/service/tcp_socket_service_test.dart#newcode53 runtime/observatory/tests/service/tcp_socket_service_test.dart:53: // Stopwatch resolution on windows makes us sometimes report ...
5 years, 3 months ago (2015-09-03 17:10:51 UTC) #10
ricow1
5 years, 3 months ago (2015-09-03 17:18:51 UTC) #11
Message was sent while issue was closed.
Committed patchset #7 (id:110001) manually as
06ab2bdbdda2ad1696a842ea44d8fd0d38106f7f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698