httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: [PATCH] DoS fix
Date Sun, 09 Aug 1998 19:14:58 GMT
Dean Gaudet wrote:
> 
> On Sun, 9 Aug 1998, Ben Laurie wrote:
> 
> > Dean Gaudet wrote:
> > > > But this should be provided as a general table thing, not just for
> > > > headers, no? And yeah, I will be doing the work if required, but not
> > > > right now - I've got a nuclear bunker to inspect (really)!
> > >
> > > Yup generalizing it would be good.  Need to figure out the right
> > > generalization though...
> >
> > The simplest one is to take an unmerged table and merge it, surely?
> 
> But it'd be slower than what I've got now... because it would mean we'd
> read and use ap_table_addn() in get_mime_headers() and then we'd have to
> copy all those key/val pairs to another array just to sort them (see rant
> about qsort and stability).
> 
> You know me... that just bugs me :)

Yep, but:

a) then we have a solution that can be used everywhere
b) neither solution takes any noticable time for any reasonable request
(I claim)

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686| Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org/
and Technical Director|Email: ben@algroup.co.uk |
A.L. Digital Ltd,     |Apache-SSL author     http://www.apache-ssl.org/
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache/

WE'RE RECRUITING! http://www.aldigital.co.uk/recruit/

Mime
View raw message