Skip to content
Browse files

added 'options.reused' parameter to the 'timing' event

  • Loading branch information...
1 parent 1538537 commit 83945221592d2866947b23d7d357c9662f0efabd @dannycoates committed Dec 11, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/pool.js
  2. +1 −1 package.json
View
1 lib/pool.js
@@ -131,6 +131,7 @@ module.exports = function (inherits, EventEmitter, Endpoint, RequestSet) {
var started = Date.now()
RequestSet.request(this, options, function (err, res, body) {
options.success = !err
+ options.reused = (res.socket._requestCount || 1) > 1
self.emit('timing', Date.now() - started, options)
callback(err, res, body)
})
View
2 package.json
@@ -1,6 +1,6 @@
{
"name": "poolee",
- "version": "0.4.4",
+ "version": "0.4.5",
"description": "HTTP pool and load balancer",
"homepage": "http://github.com/dannycoates/poolee",
"author": "Danny Coates <dannycoates@gmail.com>",

0 comments on commit 8394522

Please sign in to comment.
Something went wrong with that request. Please try again.