From c7ce985648f5d10247063d003b675ad749aaf61f Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 31 Jul 2017 18:52:33 -0700 Subject: [PATCH] http: do not destroy socket on error. see #257. --- lib/http/base.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/http/base.js b/lib/http/base.js index 917d68ab..5a0279f1 100644 --- a/lib/http/base.js +++ b/lib/http/base.js @@ -1443,13 +1443,6 @@ Response.prototype.error = function error(code, err) { code: err.code } }); - - try { - this.req.destroy(); - this.req.socket.destroy(); - } catch (e) { - ; - } }; Response.prototype.redirect = function redirect(code, url) {