Bug 43371

Summary: smax=0 is ignored
Product: Apache httpd-2 Reporter: Phil Endecott <spam_from_apache_bugzilla>
Component: mod_proxyAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED FIXED    
Severity: normal Keywords: PatchAvailable
Priority: P2    
Version: 2.2.4   
Target Milestone: ---   
Hardware: Other   
OS: other   
Attachments: Patch as described

Description Phil Endecott 2007-09-12 14:40:27 UTC
It doesn't seem unreasonable to set smax=0 in a proxy configuration, i.e. when
idle all connections should be dropped.  But, as currently implemented, zero is
used internally as a sentinel value to indicate that no user value has been
supplied.  So attempts to set smax=0 result in it getting its default value.

I have hacked together a small patch that changes this sentinel to -1, so that
zero can mean zero.  I'll attach the patch, which is against 2.2.x, though I
fear that there are probably other places that need to be changed to match.
Comment 1 Phil Endecott 2007-09-12 14:42:41 UTC
Created attachment 20803 [details]
Patch as described
Comment 2 Jim Jagielski 2008-09-19 06:41:45 UTC
Patching trunk... Setting the sentinel value where it should go however :)
Comment 3 Ruediger Pluem 2008-10-15 12:53:35 UTC
Backported to 2.2.10