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

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

Issue 14641002: Fix upgrade to secure issue (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated status file 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 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,
« 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