mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[minor] Listen to error event on pool so we dont fail out unexpectedly anymore
This commit is contained in:
parent
f8bff4c618
commit
711258ef46
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user