From c6ac0381e70f61e2fd5a8f6dbbd5807c2b9f1fc8 Mon Sep 17 00:00:00 2001 From: Adrian Wedzel Date: Wed, 28 Jun 2017 11:13:17 +0200 Subject: [PATCH] End stream after end connection --- lib/connection.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/connection.js b/lib/connection.js index 0fb874cf5..6e9f22eab 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -328,6 +328,7 @@ Connection.prototype.end = function() { this.writer.add(emptyBuffer); this._ending = true; this._send(0x58); + this.stream.end(); }; Connection.prototype.close = function(msg, more) {