Skip to content

Commit

Permalink
parser: never return user data
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Jun 6, 2014
1 parent f138683 commit c0e8216
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/spdy/protocol/parser.js
Expand Up @@ -84,7 +84,10 @@ Parser.prototype._write = function write(data, encoding, cb) {
}

// We shall not do anything until we get all expected data
if (this.buffered < this.waiting) return cb();
if (this.buffered < this.waiting) {
cb();
return;
}

var self = this,
buffer = new Buffer(this.waiting),
Expand Down

0 comments on commit c0e8216

Please sign in to comment.