Merge pull request #34 from kuzzleio/master
Small fix for the large buffer problem.
This commit is contained in:
commit
7e40c30449
2 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ function connect(){
|
||||||
|
|
||||||
data=(this.ipcBuffer+=data);
|
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);
|
client.log('Implementing larger buffer for this socket message. You may want to consider smaller messages'.notice);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,7 +172,7 @@ function init(path,config,log,port){
|
||||||
|
|
||||||
data=(this.ipcBuffer+=data);
|
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);
|
server.log('Implementing larger buffer for this socket message. You may want to consider smaller messages'.notice);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue