mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
adding more debugging messages
This commit is contained in:
parent
4069a7e98c
commit
5d54ea58c9
@ -125,11 +125,13 @@ HttpProxy.prototype = {
|
|||||||
// Open new HTTP request to internal resource with will act as a reverse proxy pass
|
// Open new HTTP request to internal resource with will act as a reverse proxy pass
|
||||||
var p = manager.getPool(port, server);
|
var p = manager.getPool(port, server);
|
||||||
|
|
||||||
|
sys.puts('current pool count for ' + req.headers.host + ":" + port + ' ' +p.clients.length);
|
||||||
|
|
||||||
p.on('error', function (err) {
|
p.on('error', function (err) {
|
||||||
// Remark: We should probably do something here
|
// Remark: We should probably do something here
|
||||||
// but this is a hot-fix because I don't think 'pool'
|
// but this is a hot-fix because I don't think 'pool'
|
||||||
// should be emitting this event.
|
// should be emitting this event.
|
||||||
sys.puts('p.on, error fired');
|
sys.puts('p.on, error fired'.red);
|
||||||
eyes.inspect(err);
|
eyes.inspect(err);
|
||||||
this.res.end();
|
this.res.end();
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user