Skip to content

Signing errors can lead to increased CPU usage #25

@rickyes

Description

@rickyes

I found that parsing the wrong zip resulted in increased CPU usage, and I found a problem after debug:

Parse.prototype._flush = function (callback) {
  if (!this._streamEnd || !this._streamFinish) {
    return setImmediate(this._flush.bind(this, callback));
  }

  this.emit('close');
  return callback();
};

Here _streamEnd and _streamFinish variables has been meet the conditions, so constantly registered setImmediate to the event loop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions