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

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

Issue 11606020: Reapply "Fixes to eventhandler and HTTP"" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove invalid assert (fixes Windows test) Created 8 years 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 | « sdk/lib/io/http_parser.dart ('k') | tests/standalone/io/http_shutdown_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/socket_stream_impl.dart
diff --git a/sdk/lib/io/socket_stream_impl.dart b/sdk/lib/io/socket_stream_impl.dart
index 08127d3c535c615b57b4b1b453fa684d22520aa1..e92de203e4b9cecf58a1f96f66af8cdeade2105f 100644
--- a/sdk/lib/io/socket_stream_impl.dart
+++ b/sdk/lib/io/socket_stream_impl.dart
@@ -107,7 +107,7 @@ class _SocketOutputStream
}
void destroy() {
- _socket.onWrite = null;
+ _socket._onWrite = null;
_pendingWrites.clear();
_socket.close();
_closed = true;
@@ -189,12 +189,12 @@ class _SocketOutputStream
}
bool _onSocketError(e) {
- close();
+ destroy();
if (_onError != null) {
_onError(e);
return true;
} else {
- return false;
+ throw e;
}
}
« no previous file with comments | « sdk/lib/io/http_parser.dart ('k') | tests/standalone/io/http_shutdown_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698