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

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

Issue 14189020: Try to fix flakiness of test standalone/io/raw_secure_server_socket_test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | tests/standalone/io/raw_secure_server_socket_test.dart » ('j') | 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 24516cdead15478c505f278952d9e833d35d92f3..26bbf123438119b6e6362f90b92ea44faa046632 100644
--- a/sdk/lib/io/secure_socket.dart
+++ b/sdk/lib/io/secure_socket.dart
@@ -347,8 +347,9 @@ class _RawSecureSocket extends Stream<RawSocketEvent>
futureSocket = new Future.value(socket);
}
futureSocket.then((rawSocket) {
- rawSocket.writeEventsEnabled = false;
_socket = rawSocket;
+ _socket.readEventsEnabled = true;
+ _socket.writeEventsEnabled = false;
if (_socketSubscription == null) {
// If a current subscription is provided use this otherwise
// create a new one.
« no previous file with comments | « no previous file | tests/standalone/io/raw_secure_server_socket_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698