You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Rainer Frey <ra...@inxmail.de> on 2010/04/01 13:32:11 UTC

[users@httpd] 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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httxt2dbm - DB file not completely rewritten

Posted by Antoine Prevosto <an...@gmail.com>.
Finally, I found that an issue was raised :

Bug 51372 httxt2dbm does not remove map entries
<https://bz.apache.org/bugzilla/show_bug.cgi?id=51372>

It was solved by a documentation update in Apache trunk.

As a matter of fact, the Apache 2.4 documentation says :

If the output file already exists, it will not be truncated. New keys will
> be added and existing keys will be updated.


Apache 2.2 documentation was not updated yet.


2015-06-23 15:10 GMT+02:00 Antoine Prevosto <an...@gmail.com>:

> Hi Rainer,
>
> I have the same issue ... 5 years later ;) with Apache 2.2.22, and even
> with Apache 2.4.10.
>
> Did you get an explanation (or I will raise an issue).
>
> Thanks
> Antoine.
>
> 2010-04-01 13:32 GMT+02:00 Rainer Frey <ra...@inxmail.de>:
>
>> 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@httpd.apache.org
>>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

Re: [users@httpd] httxt2dbm - DB file not completely rewritten

Posted by Antoine Prevosto <an...@gmail.com>.
Hi Rainer,

I have the same issue ... 5 years later ;) with Apache 2.2.22, and even
with Apache 2.4.10.

Did you get an explanation (or I will raise an issue).

Thanks
Antoine.

2010-04-01 13:32 GMT+02:00 Rainer Frey <ra...@inxmail.de>:

> 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@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] How to limit number of particular request in apache.

Posted by Morgan Gangwere <0....@gmail.com>.
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] How to limit number of particular request in apache.

Posted by Nick Kew <ni...@webthing.com>.
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] How to limit number of particular request in apache.

Posted by Nilesh Govindarajan <li...@itech7.com>.
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] How to limit number of particular request in apache.

Posted by Anuradha <ds...@yahoo.co.in>.
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://downloads.yahoo.com/in/internetexplorer/