Created
January 19, 2011 03:40
-
-
Save cloudhead/785650 to your computer and use it in GitHub Desktop.
WSS fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 1e2a3eb3d277f2adc0341fcf38309de7a7e80f93 Mon Sep 17 00:00:00 2001 | |
From: Alexis Sellier <[email protected]> | |
Date: Tue, 18 Jan 2011 22:39:20 -0500 | |
Subject: [PATCH] make 'readyState' available to CryptoStream | |
--- | |
lib/tls.js | 3 +++ | |
1 files changed, 3 insertions(+), 0 deletions(-) | |
diff --git a/lib/tls.js b/lib/tls.js | |
index af7cfb7..9705abf 100644 | |
--- a/lib/tls.js | |
+++ b/lib/tls.js | |
@@ -167,6 +167,9 @@ CryptoStream.prototype.destroy = function(err) { | |
this.pair._destroy(); | |
}; | |
+CryptoStream.prototype.fd = -1; | |
+CryptoStream.prototype.__defineGetter__('readyState', | |
+ net.Socket.prototype.__lookupGetter__('readyState')); | |
// Move decrypted, clear data out into the application. | |
// From the user's perspective this occurs as a 'data' event | |
-- | |
1.7.3.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment