Index: sdk/lib/io/secure_socket.dart |
diff --git a/sdk/lib/io/secure_socket.dart b/sdk/lib/io/secure_socket.dart |
index 6874c1445baa80f83756baf70ee7261e688ae01e..9b4d4c67be48fccbe497b407607970339f2b0f72 100644 |
--- a/sdk/lib/io/secure_socket.dart |
+++ b/sdk/lib/io/secure_socket.dart |
@@ -251,6 +251,8 @@ abstract class RawSecureSocket implements RawSocket { |
bool sendClientCertificate: false, |
String certificateName, |
bool onBadCertificate(X509Certificate certificate)}) { |
+ socket.readEventsEnabled = false; |
+ socket.writeEventsEnabled = false; |
return _RawSecureSocket.connect( |
host != null ? host : socket.address, |
socket.port, |
@@ -290,6 +292,8 @@ abstract class RawSecureSocket implements RawSocket { |
List<int> carryOverData, |
bool requestClientCertificate: false, |
bool requireClientCertificate: false}) { |
+ socket.readEventsEnabled = false; |
+ socket.writeEventsEnabled = false; |
return _RawSecureSocket.connect( |
socket.remoteHost, |
socket.remotePort, |