Browse Source

Calculating message length based on bytes

pull/3/head
Pablo Casado 12 years ago
parent
commit
7c70a9d475
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/kestrelClient.js

+ 1
- 1
lib/kestrelClient.js View File

@ -195,7 +195,7 @@ kestrel.prototype.set = function( queue, value, lifetime ){
}
var command = "SET " + queue + " 0 " + lifetime + " ";
command += value.length + "\r\n" + value + "\r\n";
command += Buffer.byteLength(value, 'utf8') + "\r\n" + value + "\r\n";
var connection = this._getConnection();
if( connection != null ){


Loading…
Cancel
Save