Skip to content

Commit

Permalink
Revert "Fix infinite recursion in Websocket parsers."
Browse files Browse the repository at this point in the history
This reverts commit c218468.
  • Loading branch information
rauchg committed Aug 7, 2012
1 parent 8ca8990 commit 875f14d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/transports/websocket/hybi-07-12.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ Parser.prototype.add = function(data) {
var bufferForHandler = this.expectBuffer;
this.expectBuffer = null;
this.expectOffset = 0;
process.nextTick(this.expectHandler.bind(this, bufferForHandler));
this.expectHandler.call(this, bufferForHandler);
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/transports/websocket/hybi-16.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ Parser.prototype.add = function(data) {
var bufferForHandler = this.expectBuffer;
this.expectBuffer = null;
this.expectOffset = 0;
process.nextTick(this.expectHandler.bind(this, bufferForHandler));
this.expectHandler.call(this, bufferForHandler);
}
}

Expand Down

0 comments on commit 875f14d

Please sign in to comment.