Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #601 from gitig/patch-2
Browse files Browse the repository at this point in the history
Update timeout.js
  • Loading branch information
py8765 committed Aug 21, 2014
2 parents 33bc852 + 6da63c6 commit 0c7fba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/filters/handler/timeout.js
Expand Up @@ -21,7 +21,7 @@ var Filter = function(timeout, maxSize) {

Filter.prototype.before = function(msg, session, next) {
var count = utils.size(this.timeouts);
if(count > DEFAULT_SIZE) {
if(count > this.maxSize) {
logger.warn('timeout filter is out of range, current size is %s, max size is %s', count, this.maxSize);
next();
return;
Expand Down

0 comments on commit 0c7fba1

Please sign in to comment.