Skip to content

Commit 4069a7e

Browse files
committed
adding some debug messages for live testing
1 parent 711258e commit 4069a7e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: lib/node-http-proxy.js

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var sys = require('sys'),
2828
http = require('http'),
2929
events = require('events'),
3030
pool = require('pool'),
31+
eyes = require('eyes'),
3132
min = 0,
3233
max = 100;
3334

@@ -128,6 +129,9 @@ HttpProxy.prototype = {
128129
// Remark: We should probably do something here
129130
// but this is a hot-fix because I don't think 'pool'
130131
// should be emitting this event.
132+
sys.puts('p.on, error fired');
133+
eyes.inspect(err);
134+
this.res.end();
131135
});
132136

133137
p.request(req.method, req.url, req.headers, function (reverse_proxy) {

0 commit comments

Comments
 (0)