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

Unified Diff: sdk/lib/io/http_parser.dart

Issue 16125005: Make new StreamController be async by default. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/io/http_parser.dart
diff --git a/sdk/lib/io/http_parser.dart b/sdk/lib/io/http_parser.dart
index b7aabd2074e11d107cabed6e6646fd3c95b7dd77..24cf5265c3d13dbdd913b35892c439d172ce14ec 100644
--- a/sdk/lib/io/http_parser.dart
+++ b/sdk/lib/io/http_parser.dart
@@ -106,7 +106,7 @@ class _HttpDetachedIncoming extends Stream<List<int>> {
_HttpDetachedIncoming(StreamSubscription this.subscription,
List<int> this.carryOverData) {
- controller = new StreamController<List<int>>(
+ controller = new StreamController<List<int>>(sync: true,
floitsch 2013/05/30 12:13:48 move to next line.
Lasse Reichstein Nielsen 2013/05/31 05:51:59 Done.
onListen: resume,
onPause: pause,
onResume: resume,
@@ -194,7 +194,7 @@ class _HttpParser
}
_HttpParser._(this._requestParser) {
- _controller = new StreamController<_HttpIncoming>(
+ _controller = new StreamController<_HttpIncoming>(sync: true,
floitsch 2013/05/30 12:13:48 move to next line.
Lasse Reichstein Nielsen 2013/05/31 05:51:59 Done.
onListen: () {
_socketSubscription.resume();
_paused = false;
@@ -882,7 +882,7 @@ class _HttpParser
assert(_bodyController == null);
assert(!_bodyPaused);
var incoming;
- _bodyController = new StreamController<List<int>>(
+ _bodyController = new StreamController<List<int>>(sync: true,
floitsch 2013/05/30 12:13:48 ditto.
Lasse Reichstein Nielsen 2013/05/31 05:51:59 Done.
onListen: () {
if (incoming != _incoming) return;
assert(_bodyPaused);

Powered by Google App Engine
This is Rietveld 408576698