Sha256: a2f77eae7fe3144986932b8e4f16ad47e183c01d2ec3945032cf62f09a44afd5

Contents?: true

Size: 680 Bytes

Versions: 3

Compression:

Stored size: 680 Bytes

Contents

common = require("../common");
assert = common.assert;
http = require("http");

server = http.createServer(function (req, res) {
  intentionally_not_defined();
  res.writeHead(200, {"Content-Type": "text/plain"});
  res.write("Thank you, come again.");
  res.end();
});

server.listen(common.PORT, function () {
  var req;
  for (var i = 0; i < 4 ; i += 1) {
    req = http.createClient(common.PORT).request('GET', '/busy/' + i);
    req.end();
  }
});

exception_count = 0;

process.addListener("uncaughtException", function (err) {
  console.log("Caught an exception: " + err);
  if (err.name === "AssertionError") throw err;
  if (++exception_count == 4) process.exit(0);
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rednode-0.1.2 ext/node/test/simple/test-http-exceptions.js
rednode-0.1.1 ext/node/test/simple/test-http-exceptions.js
rednode-0.1.0 ext/node/test/simple/test-http-exceptions.js