From 2c05b64f1e45a1bcdd09c4fc897a51bfd102ae97 Mon Sep 17 00:00:00 2001
From: Lloyd Hilaiel <lloyd@hilaiel.com>
Date: Thu, 8 Dec 2011 00:32:12 -0800
Subject: [PATCH] upgrade to a branch of statsd that lazily closes ephemeral
 UDP ports, so that we're not allocating one UDP socket per request when under
 load.  closes #680

---
 lib/configuration.js | 5 +++++
 package.json         | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/configuration.js b/lib/configuration.js
index d154c038b..4fb0d277b 100644
--- a/lib/configuration.js
+++ b/lib/configuration.js
@@ -218,6 +218,11 @@ if (process.env['VAR_PATH']) {
   g_config.var_path = process.env['VAR_PATH'];
 }
 
+// allow statsd to be enabled from the environment
+if (process.env['ENABLE_STATSD']) {
+  g_config.statsd = { enabled: true };
+}
+
 // what host/port shall we bind to?
 g_config.bind_to = {
   host: process.env['IP_ADDRESS'] || process.env['HOST'] || "127.0.0.1",
diff --git a/package.json b/package.json
index e5c680168..044b2952b 100644
--- a/package.json
+++ b/package.json
@@ -29,7 +29,7 @@
     , "postprocess": "0.0.3"
     , "urlparse": "0.0.1"
     , "uglifycss": "0.0.4"
-    , "node-statsd": "https://github.com/mojodna/node-statsd/tarball/2584c08fad"
+    , "node-statsd": "https://github.com/lloyd/node-statsd/tarball/085b93"
     , "connect-logger-statsd": "0.0.1"
     , "semver": "1.0.12"
     , "compute-cluster": "0.0.4"
-- 
GitLab