From 7c70a9d47571fcb0989b7205a2c26bd39655f0a1 Mon Sep 17 00:00:00 2001
From: Pablo Casado
Date: Tue, 18 Feb 2014 17:54:08 +0100
Subject: [PATCH 1/2] Calculating message length based on bytes
---
lib/kestrelClient.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/kestrelClient.js b/lib/kestrelClient.js
index 5445def..579e5f5 100644
--- a/lib/kestrelClient.js
+++ b/lib/kestrelClient.js
@@ -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 ){
From b8fbcc7383d9d5e523bbca3c4d4f1cb6df6acfd6 Mon Sep 17 00:00:00 2001
From: Pablo Casado
Date: Tue, 18 Feb 2014 18:02:41 +0100
Subject: [PATCH 2/2] Modifying contributors in package.json by @brettlangdon
request
---
package.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package.json b/package.json
index 1841f6b..dd7b4f3 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,8 @@
, "keywords": ["kestrel", "client", "messaging", "queue"]
, "author": "brett_langdon (http://brett.is)"
, "contributors": [
- { "name": "brett_langdon", "email": "brett@blangdon.com" }
+ { "name": "brett_langdon", "email": "brett@blangdon.com" },
+ { "name": "pablo_casado", "email": "p.casado.arias@gmail.com" }
]
, "repository":{
"type": "git"