diff --git a/lib/client.js b/lib/client.js index d350a28..984a3f8 100644 --- a/lib/client.js +++ b/lib/client.js @@ -50,6 +50,7 @@ function Client(conn, server) { this._lastDedupId = -1; this._closed = false; this._closing = false; + this.keepalive = 30; this._setup(); } @@ -62,6 +63,8 @@ function Client(conn, server) { Client.prototype._setup = function() { var that = this, client = that.connection; + that.setUpTimer(); + this._buildForward(); client.on("error", nop);