apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <mt...@apache.org>
Subject [PATCH] apr_reslist - reuse destroyed resource containers
Date Mon, 13 Sep 2004 13:08:31 GMT
Hi,

The patch allows reusing resource containers.
Although the existing code calls free_container when the
extra resources are destroyed, this container is never used.
Patch adds extra list that maintains those resources, and
uses them instead allocating the new one over and over again.

The second patch adds the two new api function for obtaining
private reslist members. Since I'm using the reslist inside
proxy balancer I have to maintain an extra mutex protected
variable that actually holds the number of free resources present
and maintained inside reslist. Being able to obtain that private
member helps selecting the resource list with highest number of
idle resources as well as list that wouldn't block on acquire.


Regards,
MT.

Mime
View raw message