Flotype/now — Issue #172: nowjs 0.8.0 causes 404's to hang in express applications
Author: rohansingh
Created: 2012-01-17 07:31:03+00:00
State: open

1. Create an express application:

$ npm install -g express
$ express /tmp/foo && cd /tmp/foo

2. Edit __package.json__ to reference `"now": "0.8.0"`.

3. Install dependencies:

$ npm install -d

4. Append this to __app.js__:

var everyone = require('now').initialize(app);

5. Run the application:

node app.js

6. Browse to a URL such as http://localhost:3000/should-get-404

Instead of getting back the expected 404, the request will hang. If you remove the line from step 4 or use nowjs 0.7.6, the issue will disappear.