diff --git a/lib/node-http-proxy.js b/lib/node-http-proxy.js index a9a34ad..081a85b 100644 --- a/lib/node-http-proxy.js +++ b/lib/node-http-proxy.js @@ -28,6 +28,7 @@ var sys = require('sys'), http = require('http'), events = require('events'), pool = require('pool'), + eyes = require('eyes'), min = 0, max = 100; @@ -128,6 +129,9 @@ HttpProxy.prototype = { // 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'); + eyes.inspect(err); + this.res.end(); }); p.request(req.method, req.url, req.headers, function (reverse_proxy) {