aboutsummaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-04-08 10:44:22 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-04-08 12:24:29 -0700
commit50c70ac7149907f00cea01dfb39703590c54de42 (patch)
tree22b5ded41e65085e423aa2642c5b026b854f1a59 /benchmark
parent7faf7d5c8d5ddb35548a0754f0c0fc3ad713c195 (diff)
downloadandroid-node-v8-50c70ac7149907f00cea01dfb39703590c54de42.tar.gz
android-node-v8-50c70ac7149907f00cea01dfb39703590c54de42.tar.bz2
android-node-v8-50c70ac7149907f00cea01dfb39703590c54de42.zip
Update stream API: forceClose() -> destroy(), close() -> end()
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/http_simple.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/http_simple.js b/benchmark/http_simple.js
index 4d9369c52a..28c215aaf5 100644
--- a/benchmark/http_simple.js
+++ b/benchmark/http_simple.js
@@ -1,7 +1,7 @@
path = require("path");
var puts = require("sys").puts;
-var old = true;
+var old = false;
http = require(old ? "http_old" : 'http');
if (old) puts('old version');
@@ -56,6 +56,6 @@ http.createServer(function (req, res) {
res.write(body, 'ascii');
res.close();
} else {
- res.close(body, 'ascii');
+ res.end(body, 'ascii');
}
}).listen(8000);