Skip to content

Commit

Permalink
[minor] Listen to error event on pool so we dont fail out unexpectedl…
Browse files Browse the repository at this point in the history
…y anymore
  • Loading branch information
indexzero committed Sep 10, 2010
1 parent f8bff4c commit 711258e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/node-http-proxy.js
Expand Up @@ -123,6 +123,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
Expand Down

0 comments on commit 711258e

Please sign in to comment.