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

Issue 12313127: Fix subscription handling in stream decoder (Closed)

Created:
7 years, 10 months ago by Søren Gjesse
Modified:
7 years, 10 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org, Anders Johnsen, Lasse Reichstein Nielsen
Visibility:
Public.

Description

Fix subscription handling in stream decoder The _StringDecoder did not handle unsubscribe correctly (the added test did not terminate as the unsubscribe did not cause stdin to be closed) Fixed by extending StreamEventTransformer which has all the logic. Changed a number of other transformers to use StreamEventTransformer as well. Fixed a bug in the StreamEventTransformer implementation. R=floitsch@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=19046

Patch Set 1 #

Patch Set 2 : Added missing file #

Total comments: 6

Patch Set 3 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -221 lines) Patch
M sdk/lib/async/stream.dart View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M sdk/lib/io/file_impl.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M sdk/lib/io/string_transformer.dart View 1 2 3 chunks +61 lines, -162 lines 0 comments Download
M sdk/lib/utf/utf_stream.dart View 3 chunks +17 lines, -53 lines 0 comments Download
A tests/standalone/io/process_stdin_transform_unsubscribe_script.dart View 1 chunk +18 lines, -0 lines 0 comments Download
A tests/standalone/io/process_stdin_transform_unsubscribe_test.dart View 1 1 chunk +38 lines, -0 lines 0 comments Download
M tests/standalone/io/string_transformer_test.dart View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Søren Gjesse
7 years, 10 months ago (2013-02-26 14:30:39 UTC) #1
floitsch
LGTM. Consider switching to map, as in https://codereview.chromium.org/12335093 https://codereview.chromium.org/12313127/diff/2001/sdk/lib/async/stream.dart File sdk/lib/async/stream.dart (right): https://codereview.chromium.org/12313127/diff/2001/sdk/lib/async/stream.dart#newcode1019 sdk/lib/async/stream.dart:1019: true ...
7 years, 10 months ago (2013-02-26 14:47:25 UTC) #2
Søren Gjesse
Kept all classes extending StreamEventTransformer for consistency. From the tests I did it also does ...
7 years, 10 months ago (2013-02-26 15:23:32 UTC) #3
Søren Gjesse
7 years, 10 months ago (2013-02-26 15:24:33 UTC) #4
Message was sent while issue was closed.
Committed patchset #3 manually as r19046 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698