Permalink
Browse files

fixed CRC32 mismatch now using byte lenght

  • Loading branch information...
1 parent 17c20da commit c3c90b1b69302ad04dd55f4d0184db0ff6027100 @pelger pelger committed Jun 27, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/message/request/produce.js
  2. +1 −1 package.json
@@ -31,7 +31,7 @@ var TIMEOUT_MS = 2000;
* 4 bytes key length + 4 bytes value length + key lenght + value length
*/
var messageByteSize = function(msg) {
- return 4 + 1 + 1 + 4 + 4 + msg.key.length + msg.value.length;
+ return 4 + 1 + 1 + 4 + 4 + msg.key.length + Buffer.byteLength(msg.value);
};
View
@@ -8,7 +8,7 @@
"0.8",
"0.9"
],
- "version": "0.0.10",
+ "version": "0.1.1",
"license": "MIT",
"author": "Peter Elger (http://www.nearform.com/)",
"contributors": [

0 comments on commit c3c90b1

Please sign in to comment.