httxt2dbm - DB file not completely rewritten

I use DBM rewrite maps (apache 2.2.9 - package 2.2.9-10+lenny6) on debian 5
with BerkeleyDB 4.6 (package 4.6.21-11). I generate the DB files with
makefiles that call httxt2dbm on potentially already existing DB files.

When entries are added to the source files, it works fine. But when entries
are deleted from the source files, the DB files still contain the entries and
lookup succeeds (and yes, I verified that the DB file is indeed updated).I
also grepped the db file for the key to verify that it is indeed in the file
(and not a cached result in apache).

Is this a bug in httxt2dbm, or is my expectation wrong? Thanks for any
comments!

Rainer



------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Rainer Frey [ Do, 01 April 2010 13:32 ] [ ID #2037437 ]

How to limit number of particular request in apache.

--0-693524102-1270248533=:5014
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi All,
=A0
I want to limit the number of "particular" requests in apache
=A0
For example
I have httpd running on my system. My webserver provides a upload and downl=
oad service.
I want to configure appache in a way that=A0 at the max it can serve=A0 100=
uploads and 200 downloads not more than that.
=A0
When I looked into the archives I came across MaxConnPerIP where they are l=
imiting request per IP
Wondering if there is any configurable parameter to limit on particular req=
uest.
=A0
=A0
Thanks,
Anu.=0A=0A=0A Your Mail works best with the New Yahoo Optimized IE8. G=
et it NOW! http://downloads.yahoo.com/in/internetexplorer/
--0-693524102-1270248533=:5014
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<table cellspacing=3D"0" cellpadding=3D"0" border=3D"0" ><tr><td valign=3D"=
top" style=3D"font: inherit;"><DIV>Hi All,</DIV>
<DIV> </DIV>
<DIV>I want to limit the number of "particular" requests in apache</DIV>
<DIV> </DIV>
<DIV>For example <BR>I have httpd running on my system. My webserver provid=
es a upload and download service.<BR>I want to configure appache in a way t=
hat  at the max it can serve  100 uploads and 200 downloads not m=
ore than that.</DIV>
<DIV> </DIV>
<DIV>When I looked into the archives I came across MaxConnPerIP where they =
are limiting request per IP<BR>Wondering if there is any configurable param=
eter to limit on particular request.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks,<BR>Anu.</DIV></td></tr></table><br>=0A <!--1--><hr size=
=3D1></hr> =0AYour Mail works best with the New Yahoo Optimized IE8. <a hre=
f=3D"http://in.rd.yahoo.com/tagline_ie8_new/*http://download s.yahoo.com/in/=
internetexplorer/" target=3D"_blank">Get it NOW!</a>.
--0-693524102-1270248533=:5014--
Anuradha [ Sa, 03 April 2010 00:48 ] [ ID #2037594 ]

Re: How to limit number of particular request in apache.

On 04/03/10 04:18, Anuradha wrote:
> Hi All,
> I want to limit the number of "particular" requests in apache
> For example
> I have httpd running on my system. My webserver provides a upload and
> download service.
> I want to configure appache in a way that at the max it can serve 100
> uploads and 200 downloads not more than that.
> When I looked into the archives I came across MaxConnPerIP where they
> are limiting request per IP
> Wondering if there is any configurable parameter to limit on particular
> request.
> Thanks,
> Anu.
>
>
> ------------------------------------------------------------ ------------
> Your Mail works best with the New Yahoo Optimized IE8. Get it NOW!
> <http://in.rd.yahoo.com/tagline_ie8_new/*http://downloads.yahoo.com/in/internetexplorer/>.
>

I don't know bout limiting no. of requests, but using <Limit> and
LimitRequestBody, you can control the maximum size of uploads / downloads.

--
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com
मेरा भारत महान !
मम भारत: महत्तम भवतु !

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Nilesh Govindrajan [ Sa, 03 April 2010 04:04 ] [ ID #2037600 ]

Re: How to limit number of particular request in apache.

On 2 Apr 2010, at 23:48, Anuradha wrote:

> I want to limit the number of "particular" requests in apache
>
> For example
> I have httpd running on my system. My webserver provides a upload and =
download service.
> I want to configure appache in a way that at the max it can serve =
100 uploads and 200 downloads not more than that.

You can't.

Well, you could write a module for it. If you can live with ballpark
numbers, I'd suggest limiting the number of threads per process
on a restricted task, rather than maintaining a global count.

Or if this is about system load, consider something like
mod_load_average.

--
Nick Kew=

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Nick Kew [ Sa, 03 April 2010 10:59 ] [ ID #2037610 ]

Re: How to limit number of particular request in apache.

On 4/3/2010 2:59 AM, Nick Kew wrote:
> You can't.
>
> Well, you could write a module for it. If you can live with ballpark
> numbers, I'd suggest limiting the number of threads per process
> on a restricted task, rather than maintaining a global count.
>
> Or if this is about system load, consider something like
> mod_load_average.
>
I know its possible. A particular service I use (a private one) will
only handle so many requests, then simply return an "I cant do that,
DAV" 401 [svc unavailable]

--
Morgan

> Because it breaks the logical flow of conversation.
>> Why?
>>> Top-Posting is Evil.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Morgan Gangwere [ Sa, 03 April 2010 17:28 ] [ ID #2037618 ]
Webserver » gmane.comp.apache.user » httxt2dbm - DB file not completely rewritten

Vorheriges Thema: Reminder: ApacheCon NA 2010 HTTP Server Track Call for Participation
Nächstes Thema: easier handling of https/ssl ?