[us...@httpd] Apache suddenly stops serving requests, recv() returns -1/errno=EAGAIN forever

2009-06-24 Thread Elmar Krieger
Dear Apache users, I'm forced to write yet another program that downloads HTTP files from an Apache server, and I'm facing a problem that is new to Google: First, to ensure that my application stays responsive, I enabled a timeout with setsockopt(sockid,SOL_SOCKET,SO_RCVTIMEO right after th

Re: [us...@httpd] Apache suddenly stops serving requests, recv() returns -1/errno=EAGAIN forever

2009-06-24 Thread André Warnier
Elmar Krieger wrote: Dear Apache users, I'm forced to write yet another program that downloads HTTP files from an Apache server, ... Naive question : why would you do that, when there are probably at least 10 existing libraries/utilities that already do that, and do it right ? I mean that d

RE: [us...@httpd] Apr_bucket_read() failed when uploading files

2009-06-24 Thread Mark
-Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: dinsdag 23 juni 2009 9:32 To: users@httpd.apache.org Subject: Re: [us...@httpd] Apr_bucket_read() failed when uploading files Mark wrote: > > So, needless to say, this is quite serious. Like I said, I even got > > an ad

Re: [us...@httpd] Apache suddenly stops serving requests, recv() returns -1/errno=EAGAIN forever

2009-06-24 Thread Elmar Krieger
>> Dear Apache users, >> >> I'm forced to write yet another program that downloads HTTP files from >> an >> Apache server, > ... > Naive question : why would you do that, when there are probably at least > 10 existing libraries/utilities that already do that, and do it right ? > > I mean that downl

Re: [us...@httpd] How can I secure my apache server from DoS attack ?

2009-06-24 Thread Nick Kew
On 23 Jun 2009, at 13:25, Neelesh Gurjar wrote: MaxClients 150 So slowloris only needs to make 150 connections to tie up your server! A simple raise to, say, 1500, would prevent a single slowloris machine bringing you down[1]. Though of course you're still vulnerable to DDoS: for that you m

[us...@httpd] vhost limit module

2009-06-24 Thread Mohit Anchlia
Apache 2.2.11 Has anyone worked with vhost limit module? I can't find tutorial or manual to read about it. Is there one? Is it possible to set customized message for clients that are being turned away? - The official User-To-User

Re: [us...@httpd] Apache suddenly stops serving requests, recv() returns -1/errno=EAGAIN forever

2009-06-24 Thread Tom Evans
On Wed, 2009-06-24 at 08:09 -0500, Elmar Krieger wrote: > >> Dear Apache users, > >> > >> I'm forced to write yet another program that downloads HTTP files from > >> an > >> Apache server, > > ... > > Naive question : why would you do that, when there are probably at least > > 10 existing libraries

[us...@httpd] Weird problem with SSL and Google Chrome and IE7/8.

2009-06-24 Thread Bill Davidson
Apache 2.2.11 w/Openssl 0.9.8k I'm having a weird problem with Apache and Chrome and IE7/8. The problem only seems to happen with SSL connections. On some requests, I get exactly 30 second delays. Firefox gets no delays. Since it seems to be consistently 30 seconds when it happens, it seems

[us...@httpd] Re: Weird problem with SSL and Google Chrome and IE7/8.

2009-06-24 Thread Bill Davidson
I forgot to mention, I also have this, in httpd-ssl.conf BrowserMatch ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 Not sure if that matters. - The official User-To-User supp

Re: [us...@httpd] Re: Weird problem with SSL and Google Chrome and IE7/8.

2009-06-24 Thread André Warnier
Bill Davidson wrote: I forgot to mention, I also have this, in httpd-ssl.conf BrowserMatch ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 Not sure if that matters. Good point. I believe it well may. Did you try commenting that line out ? Afte

[us...@httpd] global variable use in mod_proxy_http.c

2009-06-24 Thread Brian Kim
Hi. All. In mod_proxy_http.c, I globally declared a variable, like unsiged int count = 0; And I make it increase whenever the proxy gets a new http request. I expect it increases like 1, 2, 3, 4,... but it is always same 1. Does anydoby know why this happens? How can I use a global variable in

Re: [us...@httpd] global variable use in mod_proxy_http.c

2009-06-24 Thread Sander Temme
On Jun 24, 2009, at 12:47 PM, Brian Kim wrote: In mod_proxy_http.c, I globally declared a variable, like unsiged int count = 0; And I make it increase whenever the proxy gets a new http request. You mean when your httpd child processes get a new http request. I expect it increases like 1

Re: [us...@httpd] global variable use in mod_proxy_http.c

2009-06-24 Thread André Warnier
Brian Kim wrote: Hi. All. In mod_proxy_http.c, I globally declared a variable, like unsiged int count = 0; And I make it increase whenever the proxy gets a new http request. I expect it increases like 1, 2, 3, 4,... but it is always same 1. Does anydoby know why this happens? How can I use a

Re: [us...@httpd] global variable use in mod_proxy_http.c

2009-06-24 Thread Brian Kim
Thanks to Sander & André, I clearly understood why it happened and how I can get it over. Now I am looking at an example,.mod_example_ipc.c, to use a shared memory space. Thanks again. On Wed, Jun 24, 2009 at 5:31 PM, André Warnier wrote: > Brian Kim wrote: >> >> Hi. All. >> >> In mod_proxy_http

[us...@httpd] Apache monitor tray icon says "running none of 1 Apache service" even through it's actually running

2009-06-24 Thread Don Kramer
Hi, I'm running Apache 2.2.11, PHP 5.2.9-2, and MySQL Server 5.1 in 32-bit Windows XP Professional in a VM installed inside VMWare Workstation 6.5.2.  I've noticed after booting up the VM, often even through the Apache service is up and running and http://localhost and http://localhost/phptest

[us...@httpd] Setting the Timeout directive to refrain a DoS attacks

2009-06-24 Thread fredk2
Hi, http://httpd.apache.org/docs/2.2/mod/core.html#timeout says: The TimeOut directive currently defines the amount of time Apache will wait for three things 1. The total amount of time it takes to receive a GET request ... 1. seems to be misleading, tests with "Timeout 3" does not appear very

[us...@httpd] Performing Internal Certificate Checks

2009-06-24 Thread Eldad Chai
Hi, I am using Apache reverse proxy. I want to perform the following and wondering if it is possible: 1) Extract a field (Subject Name) from a client certificate sent over SSL and compare it to a local list I have 2) Add parts of the certificate to headers or parameters in the HTTP re