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

Unified Diff: runtime/bin/socket_impl.dart

Issue 10383037: Fix error reporting for socket write failure (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_impl.dart
diff --git a/runtime/bin/socket_impl.dart b/runtime/bin/socket_impl.dart
index b52f3024ea5a0f14b2f6079bd9833a828686b4a1..139344e7b35a5747edc5e6388a2b9ffd4c7d4d56 100644
--- a/runtime/bin/socket_impl.dart
+++ b/runtime/bin/socket_impl.dart
@@ -429,10 +429,10 @@ class _Socket extends _SocketBase implements Socket {
}
var result = _writeList(outBuffer, outOffset, bytes);
if (result is OSError) {
+ _reportError(result, "Write failed");
// If writing fails we return 0 as the number of bytes and
// report the error on the error handler.
result = 0;
- _reportError(result, "Write failed");
}
return result;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698