Skip to content

Commit

Permalink
Merge pull request #7 from vincentLiuxiang/test_big_data
Browse files Browse the repository at this point in the history
Test big data
  • Loading branch information
vincentLiuxiang committed Dec 9, 2016
2 parents 29e963b + 9e8d86f commit ed0392e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ WebSocket.prototype.decodeFrame = function () {
}

if (!this.isSameFrame) {
this.isSameFrame = true;
var err = this.code();
if (err) {
return this.error(err)
}
this.isSameFrame = true;
}

// Not enough data in the buffer,waiting
Expand Down
2 changes: 1 addition & 1 deletion test/test-recv-send.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ test.serial.cb('Server recv/send 2 bytes len data', (t) => {

test.serial.cb('Server recv/send 8 bytes len data', (t) => {
t.plan(2)
var len = Math.round((1+Math.random()) * 655360 + 0.5)
var len = Math.round((1+Math.random()) * 6055360 + 0.5)
var buf = new Buffer(8)
buf.writeUIntBE(len,0,8)
var tmp = new Buffer(len)
Expand Down

0 comments on commit ed0392e

Please sign in to comment.