Index: sdk/lib/io/http_parser.dart |
diff --git a/sdk/lib/io/http_parser.dart b/sdk/lib/io/http_parser.dart |
index b9123bd0afd67aae9b89297f4deb2583c0c75989..58622cf3e068a850254033cbce123ca8ac428b36 100644 |
--- a/sdk/lib/io/http_parser.dart |
+++ b/sdk/lib/io/http_parser.dart |
@@ -928,6 +928,14 @@ class _HttpParser |
} |
void _pauseStateChanged() { |
+ void update(bool pause) { |
+ if (pause && !_socketSubscription.isPaused) { |
+ _socketSubscription.pause(); |
+ } else if (!pause && _socketSubscription.isPaused) { |
+ _socketSubscription.resume(); |
+ } |
+ } |
+ |
if (_incoming != null) { |
if (!_bodyPaused && !_parserCalled) { |
_parse(); |