From 5d54ea58c93c26635e0de96871e824baffea34dd Mon Sep 17 00:00:00 2001 From: Marak Squires Date: Mon, 13 Sep 2010 18:41:24 -0400 Subject: [PATCH] adding more debugging messages --- lib/node-http-proxy.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/node-http-proxy.js b/lib/node-http-proxy.js index 081a85b7a..31af7c0d1 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(); });