Enforce rewriting of Host header when an absolue URI is given

2015-03-04 Thread Yann Ylavic
(by default, not only with HttpProtocol strict, which is trunk only btw). Per RFC7230#section-5.4 : When a proxy receives a request with an absolute-form of request-target, the proxy MUST ignore the received Host header field (if any) and instead replace it with the host information of

EventOpt and MotorZ

2015-03-04 Thread Jim Jagielski
In r1664077 I made 2 changes to trunk. First of all, since all the coolness of EventOpt has been pulled into Event, there's no need to keep EventOpt around, so it's been trashed. Also... I went ahead and added MotorZ which is a mashup of Prefork and Simple, in hopes that more eyes will allow for

Re: Event and RINGs

2015-03-04 Thread Jim Jagielski
On Mar 4, 2015, at 2:43 PM, Graham Leggett minf...@sharp.fm wrote: On 04 Mar 2015, at 8:59 PM, Jim Jagielski j...@jagunet.com wrote: I am wondering if we are continuing to use RINGs in places where we should really migrate to using skiplists. afaict, we used RINGs initially because it

Event and RINGs

2015-03-04 Thread Jim Jagielski
I am wondering if we are continuing to use RINGs in places where we should really migrate to using skiplists. afaict, we used RINGs initially because it was the only valid and available data structure we could use, but it was not idea. Even now, we aren't really using it as a FIFO queue and

Re: Event and RINGs

2015-03-04 Thread Graham Leggett
On 04 Mar 2015, at 8:59 PM, Jim Jagielski j...@jagunet.com wrote: I am wondering if we are continuing to use RINGs in places where we should really migrate to using skiplists. afaict, we used RINGs initially because it was the only valid and available data structure we could use, but it was

Run external RewriteMap program as non-root

2015-03-04 Thread Jan Kaluža
Hi, currently, the External Rewriting Program (RewriteMap prg:) is run as root. I would like to change it but I see three ways how to do it: 1. Execute it right after drop_privileges hook. This looks like best way, but I haven't found any hook which could be used for that (except