Skip to content

Commit

Permalink
adding more debugging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Marak committed Sep 13, 2010
1 parent 4069a7e commit 5d54ea5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/node-http-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,13 @@ HttpProxy.prototype = {
// Open new HTTP request to internal resource with will act as a reverse proxy pass
var p = manager.getPool(port, server);

sys.puts('current pool count for ' + req.headers.host + ":" + port + ' ' +p.clients.length);

p.on('error', function (err) {
// Remark: We should probably do something here
// but this is a hot-fix because I don't think 'pool'
// should be emitting this event.
sys.puts('p.on, error fired');
sys.puts('p.on, error fired'.red);
eyes.inspect(err);
this.res.end();
});
Expand Down

0 comments on commit 5d54ea5

Please sign in to comment.