Commit e2354b1b authored by Jim Jagielski's avatar Jim Jagielski
Browse files

Merge r1757010, r1757011 from trunk:

Delay some memory allocation in order to save 272 bytes in the 'request' memory pool if mod_status handler is triggered and is not able to handle the request

Fix <p> tag closing syntax
Submitted by: jailletc36
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1759476 13f79535-47bb-0310-9956-ffa450edef68
parent c2b77989
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -117,13 +117,6 @@ RELEASE SHOWSTOPPERS:
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
  [ start all new proposals below, under PATCHES PROPOSED. ]

   * mod_status: Delay some memory allocation
                 Fix <p> tag closing syntax
     trunk patch: http://svn.apache.org/r1757010
                  http://svn.apache.org/r1757011
     2.4.x patch: trunk works
     +1: jailletc36, jchampion, jim (will fix in 2.4)
     jchampion: nitpick: r1757010 introduces trailing whitespace

PATCHES PROPOSED TO BACKPORT FROM TRUNK:
  [ New proposals should be added at the end of the list ]
+4 −2
Original line number Diff line number Diff line
@@ -195,7 +195,7 @@ static int status_handler(request_rec *r)
    long req_time;
    int short_report;
    int no_table_report;
    worker_score *ws_record = apr_palloc(r->pool, sizeof *ws_record);
    worker_score *ws_record;
    process_score *ps_record;
    char *stat_buffer;
    pid_t *pid_buffer, worker_pid;
@@ -293,6 +293,8 @@ static int status_handler(request_rec *r)
        }
    }

    ws_record = apr_palloc(r->pool, sizeof *ws_record);

    for (i = 0; i < server_limit; ++i) {
#ifdef HAVE_TIMES
        clock_t proc_tu = 0, proc_ts = 0, proc_tcu = 0, proc_tcs = 0;
@@ -621,7 +623,7 @@ static int status_handler(request_rec *r)
                 "\"<b><code>G</code></b>\" Gracefully finishing,<br /> \n"
                 "\"<b><code>I</code></b>\" Idle cleanup of worker, \n"
                 "\"<b><code>.</code></b>\" Open slot with no current process<br />\n"
                 "<p />\n", r);
                 "</p>\n", r);
        if (!ap_extended_status) {
            int j;
            int k = 0;