Merge pull request #34 from kuzzleio/master

Small fix for the large buffer problem.
This commit is contained in:
Brandon Nozaki Miller 2015-08-12 09:50:36 -07:00
commit 7e40c30449
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;
}