Small fix fot the large buffer problem. Now node-ipc is able to handle large messages
This commit is contained in:
parent
a4c7b26ff4
commit
b91b8386be
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue