(RADIATOR) pooled connections
Tariq Rashid
tariq.rashid at uk.easynet.net
Fri Mar 19 04:27:48 CST 2004
i've been using radiator very happily using the perl hooks.
now i have a new task which requires the hooks to make decisions depending
on the results of LDAP and SQL lookups. of course its possible to open a
connection, do the lookups, and then release the connections.
however this happens for each request. which is not very efficient and
drives up the load.
i wonder if:
* it is poosible to open a single / pool of connections during the
startup hook
and use it for every request postsearchhook? and close them on
shutdown/restart.
* i also wonder if its possible to create global static variables in
the starttup
and refer to the in subsequent hooks, and even modify these
variables.
namespaces?
i think the moduule instantiations of freeradius (which appear very parallel
to objects of classes and their life-cycles) are the closest i've seen to
this
thanks
tariq rashid
--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.
More information about the radiator
mailing list