From 800936ab0897812d5e8770e033e10545d3125df8 Mon Sep 17 00:00:00 2001 From: Duknam Yoo Date: Thu, 9 Nov 2017 14:33:43 +0900 Subject: [PATCH 1/3] Fix ipcBuffer being shared with all sockets --- dao/socketServer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dao/socketServer.js b/dao/socketServer.js index 4fd99be..7691882 100644 --- a/dao/socketServer.js +++ b/dao/socketServer.js @@ -165,18 +165,18 @@ function gotData(socket,data,UDPSocket){ return; } - if(!this.ipcBuffer){ - this.ipcBuffer=''; + if(!sock.ipcBuffer){ + sock.ipcBuffer=''; } - data=(this.ipcBuffer+=data); + data=(sock.ipcBuffer+=data); if(data.slice(-1)!=eventParser.delimiter || data.indexOf(eventParser.delimiter) == -1){ this.log('Messages are large, You may want to consider smaller messages.'); return; } - this.ipcBuffer=''; + sock.ipcBuffer=''; data=eventParser.parse(data); From 3ff6bd66a07d34ae30995bb214fe8416d5b6a29a Mon Sep 17 00:00:00 2001 From: Slapbox Date: Wed, 12 Sep 2018 19:12:13 -0400 Subject: [PATCH 2/3] Corrects very minor typo Changes 'top' to 'to' --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8398681..ab824cb 100644 --- a/README.md +++ b/README.md @@ -464,7 +464,7 @@ or specifying everything UDP | method | definition | |-----------|------------| -|start| start serving need top call ` serve ` or ` serveNet ` first to set up the server | +|start| start serving need to call ` serve ` or ` serveNet ` first to set up the server | |stop| close the server and stop serving | ---- From 8b30a7dd95391f5dc4e245e2bf20b8e948f94769 Mon Sep 17 00:00:00 2001 From: Lucio Paiva Date: Thu, 4 Jul 2019 19:18:04 +0100 Subject: [PATCH 3/3] Fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8398681..0c777bf 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ Set these variables in the `ipc.config` scope to overwrite or set default values | variable | documentation | |----------|---------------| -| appspace | used for Unix Socket (Unix Domain Socket) namespacing. If not set specifically, the Unix Domain Socket will combine the socketRoot, appspace, and id to form the Unix Socket Path for creation or binding. This is available incase you have many apps running on your system, you may have several sockets with the same id, but if you change the appspace, you will still have app specic unique sockets.| +| appspace | used for Unix Socket (Unix Domain Socket) namespacing. If not set specifically, the Unix Domain Socket will combine the socketRoot, appspace, and id to form the Unix Socket Path for creation or binding. This is available in case you have many apps running on your system, you may have several sockets with the same id, but if you change the appspace, you will still have app specic unique sockets.| | socketRoot| the directory in which to create or bind to a Unix Socket | | id | the id of this socket or service | | networkHost| the local or remote host on which TCP, TLS or UDP Sockets should connect |