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

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

Issue 14729013: Make sure we always unsubscribe from a stream, in http-impl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add back a test. 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
« no previous file with comments | « no previous file | tests/standalone/io/http_server_early_client_close2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_impl.dart
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
index 32e03736b08da69347c3be8699814a5dd4b7e9bd..a0f514dc6fdfd8240f0768ccd73505a9994ac9c8 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -567,6 +567,7 @@ class _HttpOutboundConsumer implements StreamConsumer {
onCancel: _onListen);
_outbound._addStream(_controller.stream)
.then((_) {
+ _onListen(); // Make sure we unsubscribe.
_done();
_closeCompleter.complete(_outbound);
},
« no previous file with comments | « no previous file | tests/standalone/io/http_server_early_client_close2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698