Comparing version 2.3.0 to 2.3.1
@@ -9,2 +9,5 @@ CHANGELOG | ||
## 2.3.1 (2015-1-17) | ||
* @Pchelolo Ensure messages not larger then maxBufferSize | ||
## 2.3.0 (2015-1-17) | ||
@@ -11,0 +14,0 @@ * @bdeitte Fix increment(name, 0) to send a 0 count instead of 1 |
@@ -331,6 +331,9 @@ var dgram = require('dgram'), | ||
Client.prototype.enqueue = function(message){ | ||
this.buffer += message + "\n"; | ||
if(this.buffer.length >= this.maxBufferSize) { | ||
message += "\n"; | ||
if (this.buffer.length + message.length > this.maxBufferSize) { | ||
this.flushQueue(); | ||
} | ||
this.buffer += message; | ||
}; | ||
@@ -337,0 +340,0 @@ |
{ | ||
"name": "hot-shots", | ||
"description": "Node.js client for StatsD, DogStatsD, and Telegraf", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"author": "Steve Ivy", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43322
21
388