We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bb901a commit 2721847Copy full SHA for 2721847
lib/configproxy.js
@@ -219,12 +219,14 @@ class ConfigurableProxy extends EventEmitter {
219
this.metricsServer = http.createServer(metricsCallback);
220
}
221
222
+ var proxyOptions = {keepAlive: true};
223
+
224
// proxy requests separately
225
var proxyCallback = logErrors(this.handleProxyWeb);
226
if (this.options.ssl) {
- this.proxyServer = https.createServer(this.options.ssl, proxyCallback);
227
+ this.proxyServer = https.createServer({...this.options.ssl, ...proxyOptions}, proxyCallback);
228
} else {
- this.proxyServer = http.createServer(proxyCallback);
229
+ this.proxyServer = http.createServer(proxyOptions, proxyCallback);
230
231
// proxy websockets
232
this.proxyServer.on("upgrade", bound(this, this.handleProxyWs));
0 commit comments