mod_status from displaying a bogus value for the "time to
process most recent request" column for freshly-started children
in a previously-used scoreboard slot.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@99600
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 1.3.28
+ *) A newly created child now has a start_time of 0, to prevent
+ mod_status from displaying a bogus value for the "time to
+ process most recent request" column for freshly-started children
+ in a previously-used scoreboard slot. [Martin Kraemer]
+
*) When using Redirect in directory context, append requested query
string if there's no one supplied by configuration. PR 10961.
[André Malo]
ss->conn_count = (unsigned short) 0;
ss->conn_bytes = (unsigned long) 0;
}
+ else if (status == SERVER_STARTING) {
+ /* clean out the start_time so that mod_status will print Req=0 */
+ /* Use memset to be independent from the type (struct timeval vs. clock_t) */
+ memset (&ss->start_time, '\0', sizeof ss->start_time);
+ }
if (r) {
conn_rec *c = r->connection;
ap_cpystrn(ss->client, ap_get_remote_host(c, r->per_dir_config,