Commit 711258ef authored by indexzero's avatar indexzero

[minor] Listen to error event on pool so we dont fail out unexpectedly anymore

parent f8bff4c6
......@@ -124,6 +124,12 @@ HttpProxy.prototype = {
// Open new HTTP request to internal resource with will act as a reverse proxy pass
var p = manager.getPool(port, server);
p.on('error', function (err) {
// Remark: We should probably do something here
// but this is a hot-fix because I don't think 'pool'
// should be emitting this event.
});
p.request(req.method, req.url, req.headers, function (reverse_proxy) {
// Create an error handler so we can use it temporarily
var error = function (err) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment