Issue #8703 has been updated by R.I. Pienaar.

Status changed from Accepted to Closed

 2 files changed, 2 insertions(+), 1 deletions(-) http://bit.ly/mRXe8x
----------------------------------------
Bug #8703: RPC::Agent#authorized_by loads auth plugins on each request
https://projects.puppetlabs.com/issues/8703

Author: R.I. Pienaar
Status: Closed
Priority: Normal
Assignee: R.I. Pienaar
Category: SimpleRPC
Target version: 1.3.x
Keywords: 
Branch: 
Affected mCollective version: 


In the past agent classes were instantiated once and reused which meant the 
authorized_by would only be called once.  

We now instantiate them for each request which ends up calling the 
authorized_by quite often, and each time that uses PluginManager.loadclass to 
load the class which logs a debug message and searches the disk etc.

It's a small optimization to only load that class once, perhaps by checking the 
constants in M::Util to see if its already been loaded or something.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to