From 4429643450b2f53868fd49ec024a3ba629360766 Mon Sep 17 00:00:00 2001 From: Aaron Bannert Date: Thu, 21 Feb 2002 01:30:06 +0000 Subject: [PATCH] Placing the thread-limit and server-limit values, those which define the size of internal structures in the scoreboard, actually into the scoreboard allow third-party applications to access those structures. Submitted by: Adam Sussman Reviewed by: Aaron Bannert git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93523 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 4 ++++ include/scoreboard.h | 2 ++ server/scoreboard.c | 2 ++ 3 files changed, 8 insertions(+) diff --git a/CHANGES b/CHANGES index b9f7feaf2d..8f74b24a36 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,9 @@ Changes with Apache 2.0.33-dev + *) Add the server-limit and thread-limit values to the scoreboard + for the sake of third-party applications. + [Adam Sussman ] + *) Fix segfault when proxy recieves an invalid HTTP response [Ian Holsman] *) OS/390: Get make install to properly copy DSO modules. diff --git a/include/scoreboard.h b/include/scoreboard.h index bbb3b2f016..0b83715eac 100644 --- a/include/scoreboard.h +++ b/include/scoreboard.h @@ -159,6 +159,8 @@ struct worker_score { }; typedef struct { + int server_limit; + int thread_limit; ap_scoreboard_e sb_type; ap_generation_t running_generation; /* the generation of children which * should still be serving requests. */ diff --git a/server/scoreboard.c b/server/scoreboard.c index f10651dae1..5fafa952fb 100644 --- a/server/scoreboard.c +++ b/server/scoreboard.c @@ -158,6 +158,8 @@ void ap_init_scoreboard(void *shared_score) more_storage += thread_limit * sizeof(worker_score); } ap_assert(more_storage == (char*)shared_score + scoreboard_size); + ap_scoreboard_image->global->server_limit = server_limit; + ap_scoreboard_image->global->thread_limit = thread_limit; } /** -- 2.40.0