Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Dev
httpd 2.4.2 - mod_proxy id name not unique
 

Index | Next | Previous | View Flat


Zisis.Lianas at consol

Apr 30, 2012, 4:50 AM


Views: 1776
Permalink
httpd 2.4.2 - mod_proxy id name not unique

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

Subject User Time
httpd 2.4.2 - mod_proxy id name not unique Zisis.Lianas at consol Apr 30, 2012, 4:50 AM
    Re: httpd 2.4.2 - mod_proxy id name not unique jim at jaguNET May 1, 2012, 11:43 AM
        Re: httpd 2.4.2 - mod_proxy id name not unique Zisis.Lianas at consol May 9, 2012, 2:49 PM
        Re: httpd 2.4.2 - mod_proxy id name not unique Zisis.Lianas at consol Sep 11, 2012, 7:01 AM
            Re: httpd 2.4.2 - mod_proxy id name not unique jim at jaguNET Sep 11, 2012, 9:16 AM
                Re: httpd 2.4.2 - mod_proxy id name not unique Zisis.Lianas at consol Sep 12, 2012, 4:00 AM
                    Re: httpd 2.4.2 - mod_proxy id name not unique jim at jaguNET Sep 12, 2012, 5:28 AM
                        Re: httpd 2.4.2 - mod_proxy id name not unique Zisis.Lianas at consol Sep 12, 2012, 5:40 AM
                            Re: httpd 2.4.2 - mod_proxy id name not unique trawick at gmail Sep 12, 2012, 5:53 AM
                            Re: httpd 2.4.2 - mod_proxy id name not unique jim at jaguNET Sep 12, 2012, 5:55 AM
    Re: httpd 2.4.2 - mod_proxy id name not unique Zisis.Lianas at consol Sep 12, 2012, 6:31 AM
        Re: httpd 2.4.2 - mod_proxy id name not unique trawick at gmail Sep 12, 2012, 6:45 AM
    Re: httpd 2.4.2 - mod_proxy id name not unique Zisis.Lianas at consol Sep 12, 2012, 7:03 AM
    Re: httpd 2.4.2 - mod_proxy id name not unique mamfelt at gmail Sep 13, 2012, 4:02 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.