Skip to content

Commit

Permalink
cap buffering when disconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
leeliu committed Mar 30, 2016
1 parent ea42076 commit 6ca5b65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/linebuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var buf = [];
var buftimeout = null;

module.exports.addMessage = function (message) {
if (buftimeout) {
if (buftimeout && buf.length < 10000) {
debug('buffering data!');
buf.push(message);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "logdna-agent",
"version": "1.1.0",
"version": "1.1.1",
"description": "LogDNA Collector Agent",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 6ca5b65

Please sign in to comment.