http2-proxy
Advanced tools
Comparing version 0.1.17 to 0.1.18
@@ -159,2 +159,6 @@ const createError = require('http-errors') | ||
callback(new createError.BadGateway(err.message)) | ||
} else if (err.code === 'ECONNRESET') { | ||
if (!proxyReq.aborted) { | ||
callback(new createError.BadGateway('socket hang up')) | ||
} | ||
} else { | ||
@@ -164,2 +168,5 @@ callback(err) | ||
}) | ||
// NOTE http.ClientRequest doesn't emit 'aborted'. Instead it emits | ||
// a "socket hang up" error. | ||
// .on('aborted', () => callback(new createError.BadGateway('socket hang up'))) | ||
.on('timeout', () => callback(new createError.GatewayTimeout())) | ||
@@ -166,0 +173,0 @@ .on('response', proxyRes => { |
{ | ||
"name": "http2-proxy", | ||
"version": "0.1.17", | ||
"version": "0.1.18", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "dev": "nodemon --inspect=9308 --expose-http2 src", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13237
256