perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Fritsch ...@sfritsch.de>
Subject Re: mod_perl and httpd-2.4
Date Sun, 13 May 2012 14:45:18 GMT
On Wednesday 09 May 2012, Jan Kalu┼ża wrote:
> > I would favor the compatibility layer approach personally. I have
> > some code on CPAN that uses remote_ip, so I don't really want to
> > go change that to support 2.4 just yet.
> 
> If you find a way how to do it, tell me :). As I said, I think 90%
> of  httpd modules uses remote_ip/remote_addr in the meaning of
> useragent_ip/useragent_addr.
> 
> So, there's currently used conn_rec->remote_ip and new 
> request_rec->useragent_ip. I can't imagine how would you write
> some  layer to map current conn_rec->remote_ip to
> request_rec->remote_ip, since there's no way how to get particular
> request_rec from conn_rec. I just think it can't be done
> transparently and there will be need to change the modules
> anyway...

Also, conn_rec->remote_ip is probably the smaller issue compared to 
ap_requires() being gone. IMHO, there is no way to implement $r-
>requires() in a compatible way. So at least all modules doing 
authorization need be changed to use the new APIs.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message