You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Mladen Turk <mt...@apache.org> on 2004/09/13 15:08:31 UTC

[PATCH] apr_reslist - reuse destroyed resource containers

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.