diff options
author | Yann Ylavic <ylavic@apache.org> | 2024-06-01 17:08:46 +0200 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2024-06-01 17:08:46 +0200 |
commit | d821182d76394cb38d5c80d447a66c1be23dc46c (patch) | |
tree | fd4fd17cf51c9011b7041ebf9643f82efae8fdde /modules/lua | |
parent | mpm_event: Don't spam with "Stopping process due to MaxConnectionsPerChild" (diff) | |
download | apache2-d821182d76394cb38d5c80d447a66c1be23dc46c.tar.xz apache2-d821182d76394cb38d5c80d447a66c1be23dc46c.zip |
mpm_event, mod_status: Separate processing and write completion queues.
As a follow up to r1918022 which handled the new CONN_STATE_PROCESS(ing) and
existing CONN_STATE_WRITE_COMPLETION in the same async queue, let's now have
two separates ones which allows more relevant async accounting in mod_status.
Rename CONN_STATE_PROCESS to CONN_STATE_PROCESSING as it's how it will be
called in mod_status.
* include/ap_mmn.h:
MMN minor bump for process_score->processing counter.
* include/httpd.h:
Rename CONN_STATE_PROCESS to CONN_STATE_PROCESSING.
* include/scoreboard.h:
Add process_score->processing field.
* include/httpd.h, modules/http/http_core.c, modules/http2/h2_c1.c,
server/mpm/event/event.c, server/mpm/motorz/motorz.c,
server/mpm/simple/simple_io.c:
Rename CONN_STATE_PROCESS to CONN_STATE_PROCESSING.
* server/mpm/event/event.c:
Restore write_completion_q to handle connections in CONN_STATE_WRITE_COMPLETION.
Use processing_q (renamed from process_q) solely for CONN_STATE_PROCESSING.
Update process_score->processing according to the length of processing_q.
* modules/generators/mod_status.c:
Show the value of process_score->processing in the stats.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918098 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/lua')
-rw-r--r-- | modules/lua/lua_request.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/lua/lua_request.c b/modules/lua/lua_request.c index 35a21a9b37..f1b28da95a 100644 --- a/modules/lua/lua_request.c +++ b/modules/lua/lua_request.c @@ -1264,6 +1264,10 @@ static int lua_ap_scoreboard_process(lua_State *L) lua_pushnumber(L, ps_record->suspended); lua_settable(L, -3); + lua_pushstring(L, "processing"); + lua_pushnumber(L, ps_record->processing); + lua_settable(L, -3); + lua_pushstring(L, "write_completion"); lua_pushnumber(L, ps_record->write_completion); lua_settable(L, -3); |