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

Unified Diff: runtime/bin/http_impl.dart

Issue 10383039: Implemented W3C complient web socket client interface (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed second round of comments from ager@ Created 8 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 | runtime/bin/websocket.dart » ('j') | runtime/bin/websocket.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/http_impl.dart
diff --git a/runtime/bin/http_impl.dart b/runtime/bin/http_impl.dart
index 785fc93429bfae4842daab2a4336f5db30af2317..435d9f402812ff00000d508b6be8a3ca5a1db390 100644
--- a/runtime/bin/http_impl.dart
+++ b/runtime/bin/http_impl.dart
@@ -1439,6 +1439,7 @@ class _HttpClient implements HttpClient {
}
_HttpClientConnection connection = new _HttpClientConnection(this);
+ connection.onDetach = () => _activeSockets.remove(connection._socketConn);
// If there are active connections for this key get the first one
// otherwise create a new one.
« no previous file with comments | « no previous file | runtime/bin/websocket.dart » ('j') | runtime/bin/websocket.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698