httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51355] New: MaxProcesses doesn't work for the second FcgidCmdOptions statement
Date Fri, 10 Jun 2011 17:05:20 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51355

             Bug #: 51355
           Summary: MaxProcesses doesn't work for the second
                    FcgidCmdOptions statement
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_fcgid
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: alex@tessov.com
    Classification: Unclassified


Hello.

I've found a bug, and fixed it. If httpd.conf contains something like this:
---------------
<VirtualHost *:80>
    DocumentRoot "/var/html"
    ServerName www.myserver.com
    ServerAlias myserver.com

    AddHandler fcgid-script fcg fcgi fpl
    FcgidCmdOptions /var/www/script1.fcgi \
          MinProcesses 12 \
          IOTimeout 60

    FcgidCmdOptions "/var/www/script2.fcgi" \
    MaxProcesses 1
    ...
</VirtualHost>
---------------
, i.e. there are 2 FcgidCmdOptions statements, MaxProcesses for script2.fcgi
doesn't work. Even if it's set to 1, mod_fcgid creates many instances of the
class.
To fix this, in fcgid_spawn_ctl.c, please replace this string:
&& current_node->vhost_id == sconf->vhost_id
with this one:
&& current_node->vhost_id == command->vhost_id

Thank you.

Have a good day,
Sincerely Alex

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

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


Mime
View raw message