You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Stas Bekman <st...@stason.org> on 2002/03/12 10:59:14 UTC

[patch server/scoreboard.c] creating ws->thread_num

I don't think ws->thread_num has anything to do with server_limit. Am I 
wrong?

Index: server/scoreboard.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/server/scoreboard.c,v
retrieving revision 1.60
diff -u -r1.60 scoreboard.c
--- server/scoreboard.c	27 Feb 2002 04:10:19 -0000	1.60
+++ server/scoreboard.c	12 Mar 2002 09:55:52 -0000
@@ -429,7 +429,7 @@

      if (status == SERVER_READY
          && old_status == SERVER_STARTING) {
-        ws->thread_num = child_num * server_limit + thread_num;
+        ws->thread_num = child_num * thread_limit + thread_num;
          ps->generation = ap_my_generation;
      }

_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:stas@stason.org  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


Re: [patch server/scoreboard.c] creating ws->thread_num

Posted by Jeff Trawick <tr...@attglobal.net>.
Stas Bekman <st...@stason.org> writes:

> I don't think ws->thread_num has anything to do with server_limit. Am
> I wrong?
> 
> Index: server/scoreboard.c
> ===================================================================
> RCS file: /home/cvspublic/httpd-2.0/server/scoreboard.c,v
> retrieving revision 1.60
> diff -u -r1.60 scoreboard.c
> --- server/scoreboard.c	27 Feb 2002 04:10:19 -0000	1.60
> +++ server/scoreboard.c	12 Mar 2002 09:55:52 -0000
> @@ -429,7 +429,7 @@
> 
>       if (status == SERVER_READY
>           && old_status == SERVER_STARTING) {
> -        ws->thread_num = child_num * server_limit + thread_num;
> +        ws->thread_num = child_num * thread_limit + thread_num;

you're right, of course :)

Worker MPM does the calculation the same way.

committed...

Thanks!
-- 
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...