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

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

Issue 12334035: Don't send null data events on a Socket stream. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « runtime/bin/socket_patch.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/secure_socket.dart
diff --git a/sdk/lib/io/secure_socket.dart b/sdk/lib/io/secure_socket.dart
index 9eb99c8bf2e27bf3bf519e444f2a7b5f8fc9d29e..662912a223bf83056d29771a6b6b860de6e369f6 100644
--- a/sdk/lib/io/secure_socket.dart
+++ b/sdk/lib/io/secure_socket.dart
@@ -411,7 +411,7 @@ class _RawSecureSocket extends Stream<RawSocketEvent>
throw new SocketIOException("Reading from a closed socket");
}
if (_status != CONNECTED) {
- return new List<int>(0);
+ return null;
}
var buffer = _secureFilter.buffers[READ_PLAINTEXT];
_readEncryptedData();
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698