mod_proxy and timeouts

2008-01-17 Thread Ronald Park
Hi Folks,

I'm trying to get ProxyTimeout to work and having no luck.

I've set up 2 Apache instances in my network.  These are
Apache 2.0.59 servers built on a 64 bit Redhat EL4 box.

On the first, I've just added the following directives:

ProxyTimeout 2

ProxyPass /cgi-bin http:///cgi-bin/

On the second machine, I have the following simple CGI:

#!/bin/sh
sleep 30
echo Content-type: text/html
echo
echo ""
echo "Hello"
echo ""
echo "Hello"
echo ""

Why doesn't this timeout?

For 'fun', I' fiddled with the code, namely proxy_http.c,
right before the call to ap_proxy_connect_to_backend, I
reduce the value of 'timeout' in the conf struct by a factor
of 10 (so from 200 to 20, etc) each request.  As
I reload the page, nothing different happens: each request
takes 30 secs to finally, successfully return... until I
finally get down to '200'.  Then, I finally get a 502,
BAD GATEWAY error.  So at that tiny timeout (200 microsecs?),
I'm guessing the low level connect times out.  So in some
regards, timeout is working.

I did find what I think is a bug in the merge_proxy_config
function... although it merges the 'timeout' field member
in the config structure, it's not merging the 'timeout_set'
member.  However, fixing that did not resolve my issue. :(

Is there something wrong with my test?

Thanks,
Ron




Re: Apache service problem. make_sock: could not bind to address.

2008-01-17 Thread Tony Stevenson
Ashwani,

Your email needs to be redirected to [EMAIL PROTECTED]
This list (dev@) is for the people interested in the development of the
HTTP Server.

Alternatively look here, and use the IRC option.
http://httpd.apache.org/docs/2.2/faq/

Tony


On Thu, January 17, 2008 9:44 am, Ashwani Kumar Sharma wrote:
>

> Hi All,
>
>
> While trying to run apache service on windows I faced this strange
> problem. I have installed IPv6 on this machine.
>
> If I make apache run on some port no which is not free. I don't see any
> logfile being created in the apache/log directory.
>
> While I try to run the httpd.exe from the command prompt with same port
> no. I see following error message on the console.
>
> "(OS 10048)Only one usage of each socket address (protocol/network
> address/port) is normally permitted.  : make_sock: could not bind to
> address [::]:9356 no listening sockets available, shutting down Unable to
> open logs"
>
> Does somebody know what is the problem.
>
>
>
>
> Thanks and Regards,
> Ashwani Sharma
> Mob: +91+9916454843
> Off: +91-80-26265053
>
>
>
> -Original Message-
> From: Rodent of Unusual Size [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 17, 2008 10:17 AM
> To: Apache HTTP server developers
> Subject: [STATUS] (httpd-2.0) Wed Jan 16 23:46:53 2008
>
>
> APACHE 2.0 STATUS:
> -*-text-*-
> Last modified at [$Date: 2008-01-10 11:27:21 -0500 (Thu, 10 Jan 2008) $]
>
>
> The current version of this file can be found at:
>
>
> * http://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x/STATUS
>
>
> Documentation status is maintained seperately and can be found at:
>
>
> * docs/STATUS in this source tree, or
> * http://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x/docs/STATUS
>
>
> Consult the following STATUS files for information on related projects:
>
>
> * http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x/STATUS
> * http://svn.apache.org/repos/asf/apr/apr-util/branches/0.9.x/STATUS
>
>
> Consult the trunk/ for all new development and documentation efforts:
>
>
> * http://svn.apache.org/repos/asf/httpd/httpd/trunk/STATUS
> * http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/STATUS
>
>
>
> Release history:
>
>
> 2.0.63  : Tagged January 10, 2008.
> 2.0.62  : Tagged January 4, 2008. Not released.
> 2.0.61  : Released September 7, 2007.
> 2.0.60  : Tagged August 10, 2007, not released.
> 2.0.59  : released July 28, 2006 as GA.
> 2.0.58  : released May 1, 2006 as GA.
> 2.0.57  : tagged April 19, 2006, not released.
> 2.0.56  : tagged April 16, 2006, not released.
> 2.0.55  : released October 16, 2005 as GA.
> 2.0.54  : released April 17, 2005 as GA.
> 2.0.53  : released February 7, 2005 as GA.
> 2.0.52  : released September 28, 2004 as GA.
> 2.0.51  : released September 15, 2004 as GA.
> 2.0.50  : released June 30, 2004 as GA.
> 2.0.49  : released March 19, 2004 as GA.
> 2.0.48  : released October 29, 2003 as GA.
> 2.0.47  : released July 09, 2003 as GA.
> 2.0.46  : released May 28, 2003 as GA.
> 2.0.45  : released April 1, 2003 as GA.
> 2.0.44  : released January 20, 2003 as GA.
> 2.0.43  : released October 3, 2002 as GA.
> 2.0.42  : released September 24, 2002 as GA.
> 2.0.41  : rolled September 16, 2002.  not released.
> 2.0.40  : released August 9, 2002 as GA.
> 2.0.39  : released June 17, 2002 as GA.
> 2.0.38  : rolled June 16, 2002.  not released.
> 2.0.37  : rolled June 11, 2002.  not released.
> 2.0.36  : released May 6, 2002 as GA.
> 2.0.35  : released April 5, 2002 as GA.
> 2.0.34  : tagged March 26, 2002.
> 2.0.33  : tagged March 6, 2002.  not released.
> 2.0.32  : released Feburary 16, 2002 as beta.
> 2.0.31  : rolled Feburary 1, 2002.  not released.
> 2.0.30  : tagged January 8, 2002.  not rolled.
> 2.0.29  : tagged November 27, 2001.  not rolled.
> 2.0.28  : released November 13, 2001 as beta.
> 2.0.27  : rolled November 6, 2001
> 2.0.26  : tagged October 16, 2001.  not rolled.
> 2.0.25  : rolled August 29, 2001
> 2.0.24  : rolled August 18, 2001
> 2.0.23  : rolled August 9, 2001
> 2.0.22  : rolled July 29, 2001
> 2.0.21  : rolled July 20, 2001
> 2.0.20  : rolled July 8, 2001
> 2.0.19  : rolled June 27, 2001
> 2.0.18  : rolled May 18, 2001
> 2.0.17  : rolled April 17, 2001
> 2.0.16  : rolled April 4, 2001
> 2.0.15  : rolled March 21, 2001
> 2.0.14  : rolled March 7, 2001
> 2.0a9   : released December 12, 2000
> 2.0a8   : released November 20, 2000
> 2.0a7   : released October 8, 2000
> 2.0a6   : released August 18, 2000
> 2.0a5   : released August 4, 2000
> 2.0a4   : released June 7, 2000
> 2.0a3   : released April 28, 2000
> 2.0a2   : released March 31, 2000
> 2.0a1   : released March 10, 2000
>
>
>
> Contributors looking for a mission:
>
>
> * Just do an egrep on "TODO" or "XXX" in the source.
>
>
> * Review the bug database at: http://issues.apache.org/bugzilla/
>
>
> * Review the "PatchAvailable" bugs in the bug database:
>
>
>
> http://issues.apache.org/bugzilla/buglist.cgi?bug_status=NEW&bug_status=A
> SSIG
> NED&bug_status=REOPENED&product=Apache+htt

Apache service problem. make_sock: could not bind to address.

2008-01-17 Thread Ashwani Kumar Sharma

Hi All,

While trying to run apache service on windows I faced this strange problem. I
have installed IPv6 on this machine.

If I make apache run on some port no which is not free. I don't see any
logfile being created in the apache/log directory.

While I try to run the httpd.exe from the command prompt with same port no. I
see following error message on the console.

"(OS 10048)Only one usage of each socket address (protocol/network
address/port)
is normally permitted.  : make_sock: could not bind to address [::]:9356
no listening sockets available, shutting down
Unable to open logs"

Does somebody know what is the problem.

 

Thanks and Regards,
Ashwani Sharma
Mob: +91+9916454843
Off: +91-80-26265053


-Original Message-
From: Rodent of Unusual Size [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 17, 2008 10:17 AM
To: Apache HTTP server developers
Subject: [STATUS] (httpd-2.0) Wed Jan 16 23:46:53 2008

APACHE 2.0 STATUS:  -*-text-*-
Last modified at [$Date: 2008-01-10 11:27:21 -0500 (Thu, 10 Jan 2008) $]

The current version of this file can be found at:

  * http://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x/STATUS

Documentation status is maintained seperately and can be found at:

  * docs/STATUS in this source tree, or
  * http://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x/docs/STATUS

Consult the following STATUS files for information on related projects:

  * http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x/STATUS
  * http://svn.apache.org/repos/asf/apr/apr-util/branches/0.9.x/STATUS

Consult the trunk/ for all new development and documentation efforts:

  * http://svn.apache.org/repos/asf/httpd/httpd/trunk/STATUS
  * http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/STATUS


Release history:

2.0.63  : Tagged January 10, 2008.
2.0.62  : Tagged January 4, 2008. Not released.
2.0.61  : Released September 7, 2007.
2.0.60  : Tagged August 10, 2007, not released.
2.0.59  : released July 28, 2006 as GA.
2.0.58  : released May 1, 2006 as GA. 
2.0.57  : tagged April 19, 2006, not released.
2.0.56  : tagged April 16, 2006, not released.
2.0.55  : released October 16, 2005 as GA.
2.0.54  : released April 17, 2005 as GA.
2.0.53  : released February 7, 2005 as GA.
2.0.52  : released September 28, 2004 as GA.
2.0.51  : released September 15, 2004 as GA.
2.0.50  : released June 30, 2004 as GA.
2.0.49  : released March 19, 2004 as GA.
2.0.48  : released October 29, 2003 as GA.
2.0.47  : released July 09, 2003 as GA.
2.0.46  : released May 28, 2003 as GA.
2.0.45  : released April 1, 2003 as GA.
2.0.44  : released January 20, 2003 as GA.
2.0.43  : released October 3, 2002 as GA.
2.0.42  : released September 24, 2002 as GA.
2.0.41  : rolled September 16, 2002.  not released.
2.0.40  : released August 9, 2002 as GA.
2.0.39  : released June 17, 2002 as GA.
2.0.38  : rolled June 16, 2002.  not released.
2.0.37  : rolled June 11, 2002.  not released.
2.0.36  : released May 6, 2002 as GA.
2.0.35  : released April 5, 2002 as GA.
2.0.34  : tagged March 26, 2002.
2.0.33  : tagged March 6, 2002.  not released.
2.0.32  : released Feburary 16, 2002 as beta.
2.0.31  : rolled Feburary 1, 2002.  not released.
2.0.30  : tagged January 8, 2002.  not rolled.
2.0.29  : tagged November 27, 2001.  not rolled.
2.0.28  : released November 13, 2001 as beta.
2.0.27  : rolled November 6, 2001
2.0.26  : tagged October 16, 2001.  not rolled.
2.0.25  : rolled August 29, 2001
2.0.24  : rolled August 18, 2001
2.0.23  : rolled August 9, 2001
2.0.22  : rolled July 29, 2001
2.0.21  : rolled July 20, 2001
2.0.20  : rolled July 8, 2001
2.0.19  : rolled June 27, 2001
2.0.18  : rolled May 18, 2001
2.0.17  : rolled April 17, 2001
2.0.16  : rolled April 4, 2001
2.0.15  : rolled March 21, 2001
2.0.14  : rolled March 7, 2001
2.0a9   : released December 12, 2000
2.0a8   : released November 20, 2000
2.0a7   : released October 8, 2000
2.0a6   : released August 18, 2000
2.0a5   : released August 4, 2000
2.0a4   : released June 7, 2000
2.0a3   : released April 28, 2000
2.0a2   : released March 31, 2000
2.0a1   : released March 10, 2000


Contributors looking for a mission:

  * Just do an egrep on "TODO" or "XXX" in the source.

  * Review the bug database at: http://issues.apache.org/bugzilla/

  * Review the "PatchAvailable" bugs in the bug database:

 
http://issues.apache.org/bugzilla/buglist.cgi?bug_status=NEW&bug_status=ASSIG
NED&bug_status=REOPENED&product=Apache+httpd-2.0&keywords=PatchAvailable

After testing, you can append a comment saying "Reviewed and tested".

  * Open bugs in the bug database.


CURRENT RELEASE NOTES:

  * Forward binary compatibility is expected of Apache 2.0.x releases, such
that no MMN major number chan