Re: disable pid file writing?
On 10 May 2013, William A. Rowe, Jr. wrote: On Wed, 08 May 2013 19:08:56 -0500 Daniel Ruggeri drugg...@primary.net wrote: On 5/8/2013 3:29 PM, Rainer Jung wrote: Careful: I didn't test it but we delete the pid file during web server shutdown. That might remove /dev/null then. On a quick look through the code I had the impression you can not easily get rid of the pid file. Agreed - setting to /dev/null under the current code also fails startup anyway with the following error: (20014)Internal error: Error retrieving pid file /dev/null Remove it before continuing if it is corrupted. I haven't looked into it any further than that, though. Yes, to both concerns, it definately needs special treatment with a strcmp() (as I had hinted in my original note). But there isn't a sane reason to honor /dev/null, whereas there's no reason you couldn't name a pidfile 'none' in the serverroot directory. That's why I thought it would make a good no-pid sentinel value. How about as a non-sane name? /dev might be /Devices on some arcane Unix-like system but isn't a valid filename anywhere I've ever seen. -- Tim Bannister – is...@jellybaby.net
mod_ratelimit design mistake
https://httpd.apache.org/docs/trunk/mod/mod_ratelimit.html Provides a filter named RATE_LIMIT to limit client bandwidth. The connection speed to be simulated is specified, in KiB/s compared with external mod_bw.so IMHO this is a design mistake * saying i have several virtual hosts * my line has a capacity of 512 KB/Sec * one of the virtual hosts starts to have high traffic and abuses my upstream * SetEnv rate-limit 256 limits each client to 256 KB/sec at it's own * two of them abuse my upstream completly __ http://bwmod.sourceforge.net http://mariusvw.com/tag/mod_bw/ would limit the one vhost to 256 KB/sec. meaning in the case of 3 connections each would get 85 KB/sec. and the half of my available bandwidth is for other vhosts there is another interesting implementation detail of mod_bw LargeFileLimit * 500 786432 would only limit the bandwidth of files larger than 500 KB what is perfect in many cases to prevent line-overload by large downloads while respond with full performance to normal website-requests to serve small requests as quick as possible and prevnbt run out of workers IfModule mod_bw.c BandWidthModule On ForceBandWidthModule On LargeFileLimit * 500 786432 /IfModule signature.asc Description: OpenPGP digital signature
Re: mod_ratelimit design mistake
On Fri, May 10, 2013 at 4:11 PM, Reindl Harald h.rei...@thelounge.net wrote: https://httpd.apache.org/docs/trunk/mod/mod_ratelimit.html Provides a filter named RATE_LIMIT to limit client bandwidth. The connection speed to be simulated is specified, in KiB/s compared with external mod_bw.so IMHO this is a design mistake * saying i have several virtual hosts * my line has a capacity of 512 KB/Sec * one of the virtual hosts starts to have high traffic and abuses my upstream * SetEnv rate-limit 256 limits each client to 256 KB/sec at it's own * two of them abuse my upstream completly It sounds more useful, and far more complicated, to limit the overall bandwdith. But mod_ratelimit does what it says. It's not fair to say whoever wrote it should have instead scratched the itch described above.
Re: mod_ratelimit design mistake
Am 10.05.2013 22:38, schrieb Eric Covener: On Fri, May 10, 2013 at 4:11 PM, Reindl Harald h.rei...@thelounge.net wrote: https://httpd.apache.org/docs/trunk/mod/mod_ratelimit.html Provides a filter named RATE_LIMIT to limit client bandwidth. The connection speed to be simulated is specified, in KiB/s compared with external mod_bw.so IMHO this is a design mistake * saying i have several virtual hosts * my line has a capacity of 512 KB/Sec * one of the virtual hosts starts to have high traffic and abuses my upstream * SetEnv rate-limit 256 limits each client to 256 KB/sec at it's own * two of them abuse my upstream completly It sounds more useful, and far more complicated, to limit the overall bandwdith. but possible and mod_bw did it at least 5 years ago But mod_ratelimit does what it says It's not fair to say whoever wrote it should have instead scratched the itch described above this was not meant as attack i only was wondering by try to replace as most 3rd party modules as possible with the capabilites of Apache 2.4 like mod_remoteip for mod_rpaf does perfectly that mod_ratelimit will not fit currently it's not hardly needed here because faster line but in the times with DSL lines mod_bw did save more than once signature.asc Description: OpenPGP digital signature
Re: Regarding apache server debugging source code
On Thu, 9 May 2013 14:08:45 +0530 kalyan sita kalyansit...@gmail.com wrote: I am trying to attach the eclipse debugger to find how different modules of apache source code are invoked. But I could only debug httpd binary and others present in bin directory. What I want is what exactly happens when a php script is deployed in apache server How are different apache handler modules called. I want to debug them. Firstly, launching httpd with -X (no forking, no detaching) makes any debugging project much easier. Secondly, debuggers allow you to pre-load dynamically loaded shared object modules. Your other two alternatives, are to set a delayed breakpoint on a soon-to-be-loaded module, or finally you can simply set a breakpoint in the mainline code after the config file (and therefore, loadable modules) are processed.