I've got it working now. Patch attached if any of you want to use it
yourself. :)

Added suPHP_NProc and suPHP_NProcError as new directives.

E.g.

suPHP_NProc 5 (In the server or vhost config will limit them to 5 PHP
processes)
suPHP_NProcError 503 (Will return a 503 if the limit is reached)


On Sun, Oct 27, 2013 at 8:15 PM, Webmaster@askapache <
[email protected]> wrote:

> I did recently find out a super cheap method of getting the currently
> running # of procs by doing a stat on the /proc directory.. The hard links
> is the # of procs.
>
> > On Oct 27, 2013, at 8:03 PM, "Webmaster@askapache" <
> [email protected]> wrote:
> >
> > Well I for one would love that feature.
> >
> >> On Oct 27, 2013, at 6:57 PM, Lance <[email protected]> wrote:
> >>
> >> I hope someone can help me with this. I've been trying to add two new
> options to mod_suphp, basically suPHP_NProc and suPHP_NProc_Error I'm just
> not good enough with C to get it all working correctly.
> >>
> >> I was wanting suPHP_NProc to set the maximum number of permitted PHP
> processes. (I know Apache has RLimitNProc, but I was just looking to add
> something that is suPHP specific.)
> >>
> >> The other option suPHP_NProc_Error I was wanting to add to let you
> override the error code that is returned when the process limit is reached
> instead of returning a generic 500 error code (Internal Server Error).
> >>
> >> Any help with this would be appreciated.
> >> _______________________________________________
> >> suPHP mailing list
> >> [email protected]
> >> https://lists.marsching.com/mailman/listinfo/suphp
>

Attachment: mod_suphp-rlimits.patch
Description: Binary data

_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp

Reply via email to