diff --git a/lib/http2.js b/lib/http2.js index be2c9596ebc..8a5d83adfe4 100644 --- a/lib/http2.js +++ b/lib/http2.js @@ -1088,6 +1088,7 @@ ClientRequest.prototype.onSocket = function(socket) { // and we need to make sure we don't double-fire the error event. req._hadError = true; parser.finish(); + socket.destroy(); } socket.on('error', errorListener);