fixed size limit on server to include crypto overhead
This commit is contained in:
parent
dce8b6e525
commit
7f9674f494
7 changed files with 24 additions and 11 deletions
|
@ -11,6 +11,7 @@ class Limiter extends Transform {
|
|||
this.length += chunk.length;
|
||||
this.push(chunk);
|
||||
if (this.length > this.limit) {
|
||||
console.error('LIMIT', this.length, this.limit);
|
||||
return callback(new Error('limit'));
|
||||
}
|
||||
callback();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue