On 7/6/2010 12:24 PM, Anders Kaseorg wrote:
> On Tue, 2010-07-06 at 10:50 +0200, Ondřej Surý wrote:
>> I am a author of mod-vhost-ldap module and I have received complaints
>> about DocumentRoot being unstable. After a fixing of dozen bugs and
>> further debugging I have found out, that DocumentRoot is shared per
>> process and not per thread and thus I am unable to fix that as a
>> self-contained fix, since ap_document_root gets overwritten under a
>> heavy load.
> 
> FWIW, when I ran into this problem in mod-vhost-ldap, I fixed it by
> making a copy of the entire server_rec structure in the request pool.
> My mod-vhost-ldap patch is below.

That's the way to approach it, mod_ftp does the same.

We could do something interesting with moving this to the req rec in 2.4
(on 2.3 trunk) but it wouldn't solve your issue today with 2.2 or 2.0,
which will not change.

Reply via email to