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 2011/06/10 19:05:20 UTC
DO NOT REPLY [Bug 51355] New: MaxProcesses doesn't work for the
second FcgidCmdOptions statement
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
DO NOT REPLY [Bug 51355] MaxProcesses doesn't work for the second
FcgidCmdOptions statement
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51355
William A. Rowe Jr. <wr...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from William A. Rowe Jr. <wr...@apache.org> 2012-01-19 23:09:17 UTC ---
Revision 1037727 - Directory Listing
Modified Mon Nov 22 14:08:29 2010 UTC (13 months, 3 weeks ago) by trawick
Fix regression in 2.3.6 which broke process controls when using vhost-
specific configuration.
vhost_id was referenced from the wrong structure, and never matched
unless there were no vhost-specific directives in the vhost of the
request.
--- httpd/mod_fcgid/trunk/modules/fcgid/fcgid_spawn_ctl.c 2010/11/22
14:08:25 1037726
+++ httpd/mod_fcgid/trunk/modules/fcgid/fcgid_spawn_ctl.c 2010/11/22
14:08:29 1037727
@@ -178,7 +178,7 @@
if (current_node->inode == command->inode
&& current_node->deviceid == command->deviceid
&& !strcmp(current_node->cmdline, command->cmdline)
- && current_node->vhost_id == sconf->vhost_id
+ && current_node->vhost_id == command->vhost_id
&& current_node->uid == command->uid
&& current_node->gid == command->gid)
break;
Already done for 2.3.7, provided this was the instance you meant. Closing
--
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