2 for (var i = 0; i < 20*1024; i++) {
6 new node.http.Server(function (req, res) {
7 var commands = req.uri.path.split("/");
8 var command = commands[1];
10 var arg = commands[2];
15 if (command == "bytes") {
16 var n = parseInt(arg, 10)
18 throw "bytes called with n <= 0"
19 if (stored[n] === undefined) {
20 puts("create stored[n]");
22 for (var i = 0; i < n; i++) {
28 } else if (command == "quit") {
29 res.connection.server.close();
32 } else if (command == "fixed") {
40 var content_length = body.length.toString();
42 res.sendHeader( status
43 , [ ["Content-Type", "text/plain"]
44 , ["Content-Length", content_length]