Skip to content

Commit 9715ebd

Browse files
committed
[debug] Added some debugging to figure out why AB wont complete a test with v0.2.0
1 parent f291efb commit 9715ebd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,12 @@ var createProxy = function () {
103103
sys.pump(req, reverse_proxy);
104104

105105
if (e) {
106+
sys.puts('end outgoing request');
106107
req.removeListener('end', e);
107-
req.addListener('end', function () { reverse_proxy.end() });
108+
req.addListener('end', function () {
109+
sys.puts('request ended');
110+
reverse_proxy.end()
111+
});
108112
}
109113
else {
110114
reverse_proxy.end();
@@ -121,6 +125,7 @@ var createProxy = function () {
121125
response.addListener('end', function() {
122126
server.emit('proxy', null, data);
123127
});
128+
sys.puts('response');
124129

125130
// Set the response headers of the client response
126131
res.writeHead(response.statusCode, response.headers);

0 commit comments

Comments
 (0)