Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Comment on "old mode" switch (node v0.10+)

  • Loading branch information...
commit e31cf98d5e7f6e1f3bf79f38e95fac9b1ae82521 1 parent fad1e2c
@ZJONSSON ZJONSSON authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/Connection.js
View
2  lib/Connection.js
@@ -56,7 +56,9 @@ Connection.prototype.connect = function(cb) {
? Net.createConnection(this.config.socketPath)
: Net.createConnection(this.config.port, this.config.host);
+ // Node v0.10+ Switch socket into "old mode" (Streams2)
this._socket.on("data",function() {});
+
this._socket.pipe(this._protocol);
this._protocol.pipe(this._socket);
Please sign in to comment.
Something went wrong with that request. Please try again.