From 945f877d3044008fb16b6b4d3a5f88d931de3f97 Mon Sep 17 00:00:00 2001 From: isaacs Date: Sun, 16 Dec 2012 14:39:59 -0800 Subject: [PATCH] test: Fix test-https-localaddress* Fix #4418 --- test/simple/test-https-localaddress-bind-error.js | 1 + test/simple/test-https-localaddress.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/test/simple/test-https-localaddress-bind-error.js b/test/simple/test-https-localaddress-bind-error.js index 157df05804..0c4f8da4c4 100644 --- a/test/simple/test-https-localaddress-bind-error.js +++ b/test/simple/test-https-localaddress-bind-error.js @@ -39,6 +39,7 @@ var server = https.createServer(options, function(req, res) { res.writeHead(200, { 'Content-Type': 'text/plain' }); res.end('You are from: ' + req.connection.remoteAddress); }); + req.resume(); }); server.listen(common.PORT, "127.0.0.1", function() { diff --git a/test/simple/test-https-localaddress.js b/test/simple/test-https-localaddress.js index b6381b6c0f..f577af3ac8 100644 --- a/test/simple/test-https-localaddress.js +++ b/test/simple/test-https-localaddress.js @@ -42,6 +42,7 @@ var server = https.createServer(options, function (req, res) { res.writeHead(200, { 'Content-Type': 'text/plain' }); res.end('You are from: ' + req.connection.remoteAddress); }); + req.resume(); }); server.listen(common.PORT, "127.0.0.1", function() { @@ -59,6 +60,7 @@ server.listen(common.PORT, "127.0.0.1", function() { server.close(); process.exit(); }); + res.resume(); }); req.end(); });