diff --git a/lib/nats.js b/lib/nats.js index a426c676..2565db0e 100644 --- a/lib/nats.js +++ b/lib/nats.js @@ -29,7 +29,7 @@ var net = require('net'), /** * Constants */ -var VERSION = '1.0.0', +var VERSION = '1.0.1', DEFAULT_PORT = 4222, DEFAULT_PRE = 'nats://localhost:', @@ -619,6 +619,8 @@ Client.prototype.createConnection = function() { } // Create the stream this.stream = net.createConnection(this.url.port, this.url.hostname); + // this change makes it a bit faster on Linux, slightly worse on OS X + this.stream.setNoDelay(true); // Setup the proper handlers. this.setupHandlers(); }; diff --git a/package.json b/package.json index 97f44051..bd29a4c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nats", - "version": "1.0.0", + "version": "1.0.1", "description": "Node.js client for NATS, a lightweight, high-performance cloud native messaging system", "keywords": [ "nats",