diff --git a/lib/node-http-proxy.js b/lib/node-http-proxy.js index 081a85b..31af7c0 100644 --- a/lib/node-http-proxy.js +++ b/lib/node-http-proxy.js @@ -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(); });