Re: Server(_rec) unique identifier

2014-11-06 Thread Yann Ylavic
On Sat, Nov 1, 2014 at 10:25 AM, Kaspar Brand wrote: > On 29.10.2014 11:41, Yann Ylavic wrote: >> I chose to use (MD5 digest) all the IP:port from the s->addrs list >> (ie. ), plus s->server_hostname >> and s->port (ie. ServerName, be it configured or not, knowing that in >> the latter case, apr_g

Re: Server(_rec) unique identifier

2014-11-01 Thread Kaspar Brand
On 29.10.2014 11:41, Yann Ylavic wrote: > I chose to use (MD5 digest) all the IP:port from the s->addrs list > (ie. ), plus s->server_hostname > and s->port (ie. ServerName, be it configured or not, knowing that in > the latter case, apr_gethostname() is used fot the main server, and > the main ser

Re: Server(_rec) unique identifier

2014-10-31 Thread Jim Jagielski
Depends on how it's being used... coercing the pointer to it to a long sometimes works. iirc, I had to do something similar to your below impl with the balancer stuff for maintaining balancer-manager changes across reboots. > On Oct 29, 2014, at 6:41 AM, Yann Ylavic wrote: > > Hi, > > while wo

Server(_rec) unique identifier

2014-10-29 Thread Yann Ylavic
Hi, while working on PR44736, I needed an unique identifier for a vhost (and/or the main server), given the server_rec. I chose to use (MD5 digest) all the IP:port from the s->addrs list (ie. ), plus s->server_hostname and s->port (ie. ServerName, be it configured or not, knowing that in the latt