adding more debugging messages

This commit is contained in:
Marak Squires 2010-09-13 18:41:24 -04:00
parent 4069a7e98c
commit 5d54ea58c9

View File

@ -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();
});