[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-httpd-dev
Subject: httpd 2.4.2 - mod_proxy id name not unique
From: Zisis Lianas <Zisis.Lianas () consol ! de>
Date: 2012-04-30 11:50:42
Message-ID: 213c01ad-a916-446c-84f4-1c9c99bf7a65 () zimbra1
[Download RAW message or body]
hi,
when mod_proxy currently is generating his "id", the name
of this id is not very unique. So if you have a shared config/
logs dir for more instances, the slotmem-shm files generated in
DefaultRuntimeDir are the same. Bit unlucky if working with shared
file systems.
In httpd-2.4.2/modules/proxy/mod_proxy.c line 1146 I can see
the following code:
#if 0
id = ap_proxy_hashfunc(apr_psprintf(p, "%pp-%" APR_TIME_T_FMT, ps, \
apr_time_now()), PROXY_HASHFUNC_DEFAULT); #else
id = ap_proxy_hashfunc(apr_psprintf(p, "%pp", ps), PROXY_HASHFUNC_DEFAULT);
#endif
Primarily checked in with
http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy.c?r1=1065749&r2=1065748&pathrev=1065749
If activating the first ap_proxy_hashfunc call, the generated names
seem to be unique. Is there any reason this code is not used? Maybe
we can set the "timed" version as default?
best regards,
Zisis
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic