We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5829301 commit 23a127eCopy full SHA for 23a127e
index.js
@@ -397,6 +397,10 @@ class ProxyResponseHandler {
397
}
398
399
_release () {
400
+ if (this.proxyRes) {
401
+ this.proxyRes.destroy()
402
+ }
403
+
404
this.req = null
405
this.resOrSocket = null
406
this.onRes = null
@@ -471,8 +475,12 @@ class ProxyUpgradeHandler {
471
475
472
476
473
477
474
- this.proxyRes.destroy()
- this.proxySocket.destroy()
478
479
480
481
+ if (this.proxySocket) {
482
+ this.proxySocket.destroy()
483
484
485
486
0 commit comments