Shared memory ?

2010-11-15 Thread Rémy Sanchez
Hi, I'm coding a module to somehow replace/complement mod_security (it's more a proof of concept than a real project for now). The first thing that I'd like to have is a DNSBL, so that detected intruders are instantly banned when added to the blacklist. Because doing a DNS query for each HTT

Re: Shared memory ?

2010-11-15 Thread Ben Noordhuis
On Mon, Nov 15, 2010 at 17:12, Rémy Sanchez wrote: > I'm coding a module to somehow replace/complement mod_security (it's more a > proof of concept than a real project for now). The first thing that I'd like > to have is a DNSBL, so that detected intruders are instantly banned when > added to the

Re: Shared memory ?

2010-11-15 Thread Nick Kew
On Mon, 15 Nov 2010 17:12:01 +0100 Rémy Sanchez wrote: > [chop] Since you're at an experimental stage, there's no reason not to work with trunk/2.3 versions. So use the mod_socache framework, which is provided for precisely this kind of thing! -- Nick Kew

Re: Shared memory ?

2010-11-15 Thread Rémy Sanchez
On 11/15/2010 07:14 PM, Nick Kew wrote: > Since you're at an experimental stage, there's no reason > not to work with trunk/2.3 versions. So use the mod_socache > framework, which is provided for precisely this kind of thing! It's experimental, however in an idylic world it is intended to be depl

Re: Shared memory ?

2010-11-15 Thread Jim Jagielski
With 2.3/trunk you have mod_socache and/or mod_slotmem (with shared memory). socache implements a shared memory based expiring cache and slotmem is a scoreboard-like shared memory impl. On Nov 15, 2010, at 11:12 AM, Rémy Sanchez wrote: > > Hi, > > I'm coding a module to somehow replace/complem

Re: Shared memory ?

2010-11-15 Thread Rémy Sanchez
On 11/15/2010 06:43 PM, Ben Noordhuis wrote: > On Mon, Nov 15, 2010 at 17:12, Rémy Sanchez > wrote: >> > I'm coding a module to somehow replace/complement mod_security (it's more a >> > proof of concept than a real project for now). The first thing that I'd >> > like >> > to have is a DNSBL, so