mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[debug] Added some debugging to figure out why AB wont complete a test with v0.2.0
This commit is contained in:
parent
f291efbaa4
commit
9715ebd40b
@ -103,8 +103,12 @@ var createProxy = function () {
|
||||
sys.pump(req, reverse_proxy);
|
||||
|
||||
if (e) {
|
||||
sys.puts('end outgoing request');
|
||||
req.removeListener('end', e);
|
||||
req.addListener('end', function () { reverse_proxy.end() });
|
||||
req.addListener('end', function () {
|
||||
sys.puts('request ended');
|
||||
reverse_proxy.end()
|
||||
});
|
||||
}
|
||||
else {
|
||||
reverse_proxy.end();
|
||||
@ -121,6 +125,7 @@ var createProxy = function () {
|
||||
response.addListener('end', function() {
|
||||
server.emit('proxy', null, data);
|
||||
});
|
||||
sys.puts('response');
|
||||
|
||||
// Set the response headers of the client response
|
||||
res.writeHead(response.statusCode, response.headers);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user