Permalink
Browse files

don't emit 'timeout' events for

  • Loading branch information...
1 parent 2524716 commit 88f5050ecf30a39d8268e9d49714ea467be5be82 @dannycoates committed Nov 28, 2012
Showing with 4 additions and 2 deletions.
  1. +3 −1 lib/endpoint.js
  2. +1 −1 package.json
View
@@ -100,7 +100,9 @@ module.exports = function (inherits, EventEmitter, Pinger) {
var r = this.requests[keys[i]]
var expireTime = clock - r.options.timeout
if (r.lastTouched <= expireTime) {
- this.emit("timeout", r)
+ if (r.options.path !== this.pingPath) {
+ this.emit("timeout", r)
+ }
r.timedOut = true
r.abort()
}
View
@@ -1,6 +1,6 @@
{
"name": "poolee",
- "version": "0.4.1",
+ "version": "0.4.2",
"description": "HTTP pool and load balancer",
"homepage": "http://github.com/dannycoates/poolee",
"author": "Danny Coates <dannycoates@gmail.com>",

0 comments on commit 88f5050

Please sign in to comment.