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

Issue 11474048: pipeInputToInput should be resilient to stream closure. (Closed)

Created:
8 years ago by nweiz
Modified:
8 years ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

pipeInputToInput should be resilient to stream closure. Committed: https://code.google.com/p/dart/source/detail?r=15880

Patch Set 1 #

Total comments: 2

Patch Set 2 : Code review change. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M utils/pub/io.dart View 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
nweiz
8 years ago (2012-12-08 03:33:38 UTC) #1
Bob Nystrom
LGTM after change. https://codereview.chromium.org/11474048/diff/1/utils/pub/io.dart File utils/pub/io.dart (right): https://codereview.chromium.org/11474048/diff/1/utils/pub/io.dart#newcode623 utils/pub/io.dart:623: if (!sink.closed) sink.write(source.read()); Should do the ...
8 years ago (2012-12-08 03:35:33 UTC) #2
nweiz
8 years ago (2012-12-08 03:38:04 UTC) #3
https://codereview.chromium.org/11474048/diff/1/utils/pub/io.dart
File utils/pub/io.dart (right):

https://codereview.chromium.org/11474048/diff/1/utils/pub/io.dart#newcode623
utils/pub/io.dart:623: if (!sink.closed) sink.write(source.read());
On 2012/12/08 03:35:33, Bob Nystrom wrote:
> Should do the read() even if it's closed.
> 
> Also, maybe log this? Is it unexpected for this to happen?

I think it's more or less "business as usual" for streams. Probably not worth
logging, as it's very hard to know what the context is and may provide a high
volume of low-utility information.

Powered by Google App Engine
This is Rietveld 408576698