From 2765c700dc20d6a010b9e5d73a3bbd84f1f05cb5 Mon Sep 17 00:00:00 2001 From: Brandon Nozaki Miller Date: Fri, 5 Sep 2014 00:17:08 -0700 Subject: [PATCH] modified buffer size messages --- lib/client.js | 4 +--- lib/socketServer.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/client.js b/lib/client.js index cd7f6d4..4118ca5 100644 --- a/lib/client.js +++ b/lib/client.js @@ -13,8 +13,6 @@ function init(config,log){ } new pubsub(client); - console.log(this) - return client; } @@ -131,7 +129,7 @@ function connect(){ data=(this.ipcBuffer+=data); if(data.slice(-1)!=eventParser.delimiter){ - client.log('Socket buffer size exceeded consider smaller messages or a larger buffer.'.warn, 'Implementing software buffer expansion for this message.'.notice); + server.log('Implementing larger buffer for this socket message. You may want to consider smaller messages'.notice); return; } diff --git a/lib/socketServer.js b/lib/socketServer.js index 2b49dbf..a3d0110 100644 --- a/lib/socketServer.js +++ b/lib/socketServer.js @@ -173,7 +173,7 @@ function init(path,config,log,port){ data=(this.ipcBuffer+=data); if(data.slice(-1)!=eventParser.delimiter){ - server.log('Socket buffer size exceeded, consider smaller messages or a larger buffer.'.warn, 'Implementing software buffer expansion for this message.'.notice); + server.log('Implementing larger buffer for this socket message. You may want to consider smaller messages'.notice); return; } diff --git a/package.json b/package.json index 38a9a82..32ac944 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-ipc", - "version": "1.1.8", + "version": "1.1.9", "description": "A nodejs module for local and remote Inter Process Communication (IPC), Neural Networking, and able to facilitate machine learning.", "main": "node-ipc.js", "directories": {