summaryrefslogtreecommitdiffstats
path: root/include/scoreboard.h
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2019-03-12 11:45:02 +0100
committerYann Ylavic <ylavic@apache.org>2019-03-12 11:45:02 +0100
commit0900b36b70df8ca3939df65a98f12c0c5f537d3b (patch)
tree04562ab737d3f24369d1dcec21a09ff3949704aa /include/scoreboard.h
parent *) mod_http2: when SSL renegotiation is inhibited and a 403 ErrorDocument is (diff)
downloadapache2-0900b36b70df8ca3939df65a98f12c0c5f537d3b.tar.xz
apache2-0900b36b70df8ca3939df65a98f12c0c5f537d3b.zip
MPMs unix: bind the bucket number of each child to its slot number
We need not remember each child's bucket number in SHM for restarts, for the lifetime of the httpd main process the bucket number can be bound to the slot number such that: bucket = slot % num_buckets. This both simplifies the logic and helps children maintenance per bucket in threaded MPMs, where previously perform_idle_server_maintenance() could create or kill children processes for the buckets it was not in charge of. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1855306 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/scoreboard.h')
-rw-r--r--include/scoreboard.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/scoreboard.h b/include/scoreboard.h
index 97d8d39c4a..0d72210789 100644
--- a/include/scoreboard.h
+++ b/include/scoreboard.h
@@ -148,7 +148,10 @@ struct process_score {
apr_uint32_t lingering_close; /* async connections in lingering close */
apr_uint32_t keep_alive; /* async connections in keep alive */
apr_uint32_t suspended; /* connections suspended by some module */
- int bucket; /* Listener bucket used by this child */
+ int bucket; /* Listener bucket used by this child; this field is DEPRECATED
+ * and no longer updated by the MPMs (i.e. always zero) from
+ * 2.5.x and later.
+ */
};
/* Scoreboard is now in 'local' memory, since it isn't updated once created,