Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

exceptions in request handler are ignored #144

@mranney

Description

@mranney

Example from website, with error added:

var sys = require('sys'),
   http = require('http');
http.createServer(function (req, res) {
  breakOnPurpose();
  setTimeout(function () {
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.end('Hello World\n');
  }, 2000);
}).listen(8000);
sys.puts('Server running at http://127.0.0.1:8000/');

Output from server:

mjr:~$ node example.js 
Server running at http://127.0.0.1:8000/

Output from client:
mjr:~$ curl localhost:8000
curl: (52) Empty reply from server

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions