Permalink
Browse files

db.js connection token bugfix

  • Loading branch information...
1 parent 6d212ea commit 733c4319f9e2a467eaceaea235207b6c93e7bb4e @kaven276 committed Sep 28, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/db.js
View
@@ -81,9 +81,9 @@ var dbListener = net.createServer({allowHalfOpen : true}, function(c){
return;
}
- c.sid = data.readInt32BE(0);
- c.serial = data.readInt32BE(4);
- c.pseq = data.readInt32BE(8);
+ c.sid = data.readInt32BE(4);
+ c.serial = data.readInt32BE(8);
+ c.pseq = data.readInt32BE(12);
c.seq = ++sockSeq;
if (c.pseq < 0) {

0 comments on commit 733c431

Please sign in to comment.