Increased socket flooding detection threshold
This commit is contained in:
parent
74b6cc0052
commit
dc17481db6
@ -206,7 +206,7 @@ var StratumClient = function(options){
|
||||
}
|
||||
socket.on('data', function(d){
|
||||
dataBuffer += d;
|
||||
if (Buffer.byteLength(dataBuffer, 'utf8') > 1024){
|
||||
if (Buffer.byteLength(dataBuffer, 'utf8') > 10240){ //10KB
|
||||
dataBuffer = '';
|
||||
_this.emit('socketFlooded');
|
||||
socket.destroy();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user