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

Unified Diff: runtime/bin/socket_patch.dart

Issue 11416108: Implement input and output streams for secure network sockets. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minimize diff to tls_server_test.dart. Created 8 years, 1 month 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 | sdk/lib/io/tls_socket.dart » ('j') | sdk/lib/io/tls_socket.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_patch.dart
diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart
index 7ce75d363c9fd84fa9d34d2a04c4f2be279cb7d7..21575f7cee10c1ca095719dc5e709cbbfdf7ac79 100644
--- a/runtime/bin/socket_patch.dart
+++ b/runtime/bin/socket_patch.dart
@@ -465,7 +465,7 @@ class _Socket extends _SocketBase implements Socket {
}
void set onConnect(void callback()) {
- if (_seenFirstOutEvent || _outputStream != null) {
+ if (_seenFirstOutEvent) {
throw new StreamException(
"Cannot set connect handler when already connected");
}
@@ -509,7 +509,7 @@ class _Socket extends _SocketBase implements Socket {
if (_outputStream == null) {
if (_handlerMap[_SocketBase._OUT_EVENT] != null) {
throw new StreamException(
- "Cannot get input stream when socket handlers are used");
+ "Cannot get output stream when socket handlers are used");
}
_outputStream = new _SocketOutputStream(this);
}
« no previous file with comments | « no previous file | sdk/lib/io/tls_socket.dart » ('j') | sdk/lib/io/tls_socket.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698