summaryrefslogtreecommitdiff
path: root/test/simple/test-http-upgrade-client2.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-06-12 17:45:30 -0700
committerisaacs <i@izs.me>2013-06-12 17:45:30 -0700
commite8500274e04bab2eb630b4000cbd35be8d23d3fd (patch)
treedee57721f10debe3bd645c2a75fe3574704533cb /test/simple/test-http-upgrade-client2.js
parent48476273eb1a5868c2cccd7afdb9338fa52efccc (diff)
downloadnode-new-e8500274e04bab2eb630b4000cbd35be8d23d3fd.tar.gz
Revert "http: remove bodyHead from 'upgrade' events"
This reverts commit a40133d10cdb911b27fe8d46d67a835b0103bbf1. Unfortunately, this breaks socket.io. Even though it's not strictly an API change, it is too subtle and in too brittle an area of node, to be done in a stable branch. Conflicts: doc/api/http.markdown
Diffstat (limited to 'test/simple/test-http-upgrade-client2.js')
-rw-r--r--test/simple/test-http-upgrade-client2.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/simple/test-http-upgrade-client2.js b/test/simple/test-http-upgrade-client2.js
index 53f15d2939..fa39f2a572 100644
--- a/test/simple/test-http-upgrade-client2.js
+++ b/test/simple/test-http-upgrade-client2.js
@@ -30,9 +30,6 @@ server.on('upgrade', function(req, socket, head) {
socket.write('HTTP/1.1 101 Ok' + CRLF +
'Connection: Upgrade' + CRLF +
'Upgrade: Test' + CRLF + CRLF + 'head');
- socket.on('readable', function() {
- socket.read();
- });
socket.on('end', function() {
socket.end();
});
@@ -53,7 +50,6 @@ server.listen(common.PORT, function() {
wasUpgrade = true;
request.removeListener('upgrade', onUpgrade);
- socket.unref();
socket.end();
}
request.on('upgrade', onUpgrade);
@@ -79,7 +75,6 @@ server.listen(common.PORT, function() {
successCount++;
// Test pass
console.log('Pass!');
- server.unref();
server.close();
});
});