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);
|
sys.pump(req, reverse_proxy);
|
||||||
|
|
||||||
if (e) {
|
if (e) {
|
||||||
|
sys.puts('end outgoing request');
|
||||||
req.removeListener('end', e);
|
req.removeListener('end', e);
|
||||||
req.addListener('end', function () { reverse_proxy.end() });
|
req.addListener('end', function () {
|
||||||
|
sys.puts('request ended');
|
||||||
|
reverse_proxy.end()
|
||||||
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
reverse_proxy.end();
|
reverse_proxy.end();
|
||||||
@ -121,6 +125,7 @@ var createProxy = function () {
|
|||||||
response.addListener('end', function() {
|
response.addListener('end', function() {
|
||||||
server.emit('proxy', null, data);
|
server.emit('proxy', null, data);
|
||||||
});
|
});
|
||||||
|
sys.puts('response');
|
||||||
|
|
||||||
// Set the response headers of the client response
|
// Set the response headers of the client response
|
||||||
res.writeHead(response.statusCode, response.headers);
|
res.writeHead(response.statusCode, response.headers);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user