Small fix fot the large buffer problem. Now node-ipc is able to handle large messages

This commit is contained in:
Jean-François Vial 2015-08-11 19:11:29 +02:00
parent a4c7b26ff4
commit b91b8386be
2 changed files with 2 additions and 2 deletions

View file

@ -132,7 +132,7 @@ function connect(){
data=(this.ipcBuffer+=data);
if(data.slice(-1)!=eventParser.delimiter){
if(data.slice(-1)!=eventParser.delimiter || data.indexOf(eventParser.delimiter) == -1){
client.log('Implementing larger buffer for this socket message. You may want to consider smaller messages'.notice);
return;
}

View file

@ -172,7 +172,7 @@ function init(path,config,log,port){
data=(this.ipcBuffer+=data);
if(data.slice(-1)!=eventParser.delimiter){
if(data.slice(-1)!=eventParser.delimiter || data.indexOf(eventParser.delimiter) == -1){
server.log('Implementing larger buffer for this socket message. You may want to consider smaller messages'.notice);
return;
}