Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis
Created September 9, 2011 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnoordhuis/22370a60acfcf80f7bed to your computer and use it in GitHub Desktop.
Save bnoordhuis/22370a60acfcf80f7bed to your computer and use it in GitHub Desktop.
diff --git a/test/simple/test-tls-peer-certificate.js b/test/simple/test-tls-peer-certificate.js
index 6ef03c7..ddb0f25 100644
--- a/test/simple/test-tls-peer-certificate.js
+++ b/test/simple/test-tls-peer-certificate.js
@@ -39,7 +39,9 @@ var options = {
var verified = false;
var server = tls.createServer(options, function(cleartext) {
+ console.error('cleartext.writable [1]', cleartext.writable);
cleartext.end('World');
+ console.error('cleartext.writable [2]', cleartext.writable);
});
server.listen(common.PORT, function() {
var socket = tls.connect(common.PORT, function() {
@@ -50,7 +52,9 @@ server.listen(common.PORT, function() {
verified = true;
server.close();
});
+ console.error('socket.writable [1]', socket.writable);
socket.end('Hello');
+ console.error('socket.writable [2]', socket.writable);
});
process.on('exit', function() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment