You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2007/10/31 18:07:37 UTC

DO NOT REPLY [Bug 43756] New: - Can't set retry=0 in mod_proxy

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43756>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43756

           Summary: Can't set retry=0 in mod_proxy
           Product: Apache httpd-2
           Version: 2.2.6
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Documentation
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: jeremy.garrouste@gmail.com


Hello, 

i have found a little error in mod_proxy.c, it is not possible to set retry=0.

----------
Documentation (http://httpd.apache.org/docs/2.2/mod/mod_proxy.html):
retry  	60  	Connection pool worker retry timeout in seconds. If the connection
pool worker to the backend server is in the error state, Apache will not forward
any requests to that server until the timeout expires. This enables to shut down
the backend server for maintenance, and bring it back online later. A value of 0
means always retry workers in an error state with no timeout.
---------
mod_proxy.c :
    else if (!strcasecmp(key, "retry")) {
        /* If set it will give the retry timeout for the worker
         * The default value is 60 seconds, meaning that if
         * in error state, it will be retried after that timeout.
         */
        ival = atoi(val);
        if (ival < 1)    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
            return "Retry must be at least one second";
        worker->retry = apr_time_from_sec(ival);
----------

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 43756] - Can't set retry=0 in mod_proxy

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43756>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43756


nick@webthing.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From nick@webthing.com  2007-10-31 13:31 -------
Looks like you have an old mod_proxy.  The code fragment you've found was
updated in September 2006, and 2.2.6 certainly lets you set 0.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 43756] - Can't set retry=0 in mod_proxy

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43756>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43756





------- Additional Comments From nick@webthing.com  2007-10-31 14:12 -------
Yeah, OK, just saw you on IRC.  The docs at httpd.apache.org are ahead of 2.2.6.
 It was fixed in my local copy, and is fixed in 2.2 in
http://svn.apache.org/viewvc?view=rev&revision=576910

Bear in mind http://httpd.apache.org/docs/2.2/ reflects (more-or-less)
httpd-2.2-current, and so may go out of date for any particular 2.2.x in matters
of minor detail.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org