Skip to content

Commit

Permalink
Merge pull request #444 from tomeinc/master
Browse files Browse the repository at this point in the history
Issue  #300: connection.end() causing ECONNRESET
  • Loading branch information
postwait authored Jan 11, 2017
2 parents 1d30ce1 + 63c087a commit ca2e3b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ Connection.prototype._onMethod = function (channel, method, args) {
case methods.connectionCloseOk:
debug && debug("Received close-ok from server, closing socket");
this.socket.end();
this.socket.destroy();
break;

case methods.connectionBlocked:
Expand Down

0 comments on commit ca2e3b5

Please sign in to comment.