[mod_status] show keep-alive status w/ text output (fixes #2740)
x-ref: "mod_status with "?auto" modifier not showing keep-alive (k) status on Scoreboard" https://redmine.lighttpd.net/issues/2740 "server-status - additional stats - keepalive" https://redmine.lighttpd.net/issues/1202personal/stbuehler/mod-csrf-old
parent
cd33554b74
commit
b43fc006be
|
@ -638,7 +638,10 @@ static handler_t mod_status_handle_server_status_text(server *srv, connection *c
|
|||
buffer_append_string_len(b, CONST_STR_LEN("Scoreboard: "));
|
||||
for (k = 0; k < srv->conns->used; k++) {
|
||||
connection *c = srv->conns->ptr[k];
|
||||
const char *state = connection_get_short_state(c->state);
|
||||
const char *state =
|
||||
(CON_STATE_READ == c->state && !buffer_string_is_empty(c->request.orig_uri))
|
||||
? "k"
|
||||
: connection_get_short_state(c->state);
|
||||
buffer_append_string_len(b, state, 1);
|
||||
}
|
||||
for (l = 0; l < srv->conns->size - srv->conns->used; l++) {
|
||||
|
|
Loading…
Reference in New Issue