]> granicus.if.org Git - apache/commitdiff
Follow up to r1783755: update APLOGNO.
authorYann Ylavic <ylavic@apache.org>
Mon, 20 Feb 2017 13:50:49 +0000 (13:50 +0000)
committerYann Ylavic <ylavic@apache.org>
Mon, 20 Feb 2017 13:50:49 +0000 (13:50 +0000)
[Reverted by r1783760]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1783759 13f79535-47bb-0310-9956-ffa450edef68

docs/log-message-tags/next-number
include/mod_core.h
modules/filters/mod_include.c
modules/http2/h2_conn.c
server/main.c
server/mpm/event/event.c
server/mpm_unix.c
server/request.c

index 386586617c271051cfa370494ea5c4929496b8c7..3cd74ff17f5dc3f7536d5eebaecf9f988e6e0ee6 100644 (file)
@@ -1 +1 @@
-10003
+10004
index 8eab3e12c46196b453f0f1fcf473149fb9d41f11..cb88db7dc7d74da2a28ca2c13bc0768b1eadc1ac 100644 (file)
@@ -45,6 +45,10 @@ AP_DECLARE_DATA extern ap_filter_rec_t *ap_chunk_filter_handle;
 AP_DECLARE_DATA extern ap_filter_rec_t *ap_http_outerror_filter_handle;
 AP_DECLARE_DATA extern ap_filter_rec_t *ap_byterange_filter_handle;
 
+typedef struct {
+    apr_bucket_brigade *tmp_bb;
+} http_conn_config;
+
 /*
  * These (input) filters are internal to the mod_core operation.
  */
index 9f69d8adf931643a85b0ca693f2956d683510780..a342e2794d2e30a80faff65dad2e130939fe4b11 100644 (file)
@@ -3783,6 +3783,7 @@ static apr_status_t send_parsed_content(ap_filter_t *f, apr_bucket_brigade *bb)
     /* if something's left over, pass it along */
     if (!APR_BRIGADE_EMPTY(pass_bb)) {
         rv = ap_pass_brigade(f->next, pass_bb);
+        apr_brigade_cleanup(pass_bb);
     }
     else {
         rv = APR_SUCCESS;
index a8de28425b3cd2ab78bcfd7aa4f758e56ea8ea5f..7b504d0ee09d4c8a08b92f5daac00976924b3a2c 100644 (file)
@@ -280,7 +280,7 @@ conn_rec *h2_slave_create(conn_rec *master, int slave_id, apr_pool_t *parent)
     status = apr_thread_mutex_create(&mutex, APR_THREAD_MUTEX_DEFAULT, pool);
     if (status != APR_SUCCESS) {
         ap_log_cerror(APLOG_MARK, APLOG_ERR, status, master, 
-                      APLOGNO() "h2_session(%ld-%d): create slave mutex",
+                      APLOGNO(10004) "h2_session(%ld-%d): create slave mutex",
                       master->id, slave_id);
         apr_pool_destroy(pool);
         return NULL;
index 351f0f1a56f2755d35c156dfc0eb50eb484b9098..da7e1d2512bc5eb0286cd1e546041ef62c907f7c 100644 (file)
@@ -735,6 +735,8 @@ int main(int argc, const char * const argv[])
         apr_pool_clear(pconf);
         ap_clear_auth_internal();
 
+        apr_sleep(apr_time_from_sec(10));
+
         ap_main_state = AP_SQ_MS_CREATE_CONFIG;
         ap_config_generation++;
         for (mod = ap_prelinked_modules; *mod != NULL; mod++) {
index 151c920b0a04e4c7199da4a95d549e3caa40c706..bd89d033f7eeaa544ecec44f54612ed21e77e083 100644 (file)
@@ -2135,7 +2135,7 @@ static void * APR_THREAD_FUNC listener_thread(apr_thread_t * thd, void *dummy)
                                                  ptrans);
                     if (rc != APR_SUCCESS) {
                         ap_log_error(APLOG_MARK, APLOG_CRIT, rc,
-                                     ap_server_conf, APLOGNO()
+                                     ap_server_conf, APLOGNO(10003)
                                      "Failed to create transaction pool mutex");
                         ap_push_pool(worker_queue_info, ptrans);
                         signal_threads(ST_GRACEFUL);
index cd3bc52d51fc0fa3b6977b7d30a427cfbc3b466f..fb589fda2f71a5299dc6dfaa58fcf2a7d316e502 100644 (file)
@@ -1015,14 +1015,13 @@ AP_DECLARE(apr_status_t) ap_fatal_signal_setup(server_rec *s,
 #ifndef NO_USE_SIGACTION
     struct sigaction sa;
 
+    memset(&sa, 0, sizeof sa);
     sigemptyset(&sa.sa_mask);
 
 #if defined(SA_ONESHOT)
     sa.sa_flags = SA_ONESHOT;
 #elif defined(SA_RESETHAND)
     sa.sa_flags = SA_RESETHAND;
-#else
-    sa.sa_flags = 0;
 #endif
 
     sa.sa_handler = sig_coredump;
index 5336eb26d081fdc1c0c6af00406293730063fdc4..5bc3bf36c1b3bbc7f49d8d6f97796bca03d508e5 100644 (file)
@@ -2040,8 +2040,10 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_sub_req_output_filter(ap_filter_t *f,
 AP_CORE_DECLARE_NONSTD(apr_status_t) ap_request_core_filter(ap_filter_t *f,
                                                             apr_bucket_brigade *bb)
 {
+    extern module http_module;
     apr_bucket *flush_upto = NULL;
     apr_status_t status = APR_SUCCESS;
+    http_conn_config *conn_cfg = ap_get_module_config(f->c->conn_config, &http_module);
     apr_bucket_brigade *tmp_bb = f->ctx;
 
     /*
@@ -2056,12 +2058,13 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_request_core_filter(ap_filter_t *f,
     if (!tmp_bb) {
         tmp_bb = f->ctx = apr_brigade_create(f->r->pool, f->c->bucket_alloc);
     }
+    APR_BRIGADE_CONCAT(tmp_bb, bb);
 
     /* Reinstate any buffered content */
-    ap_filter_reinstate_brigade(f, bb, &flush_upto);
+    ap_filter_reinstate_brigade(f, tmp_bb, &flush_upto);
 
-    while (!APR_BRIGADE_EMPTY(bb)) {
-        apr_bucket *bucket = APR_BRIGADE_FIRST(bb);
+    while (!APR_BRIGADE_EMPTY(tmp_bb)) {
+        apr_bucket *bucket = APR_BRIGADE_FIRST(tmp_bb);
 
         /* if the core has set aside data, back off and try later */
         if (!flush_upto) {
@@ -2091,16 +2094,16 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_request_core_filter(ap_filter_t *f,
 
         /* pass each bucket down the chain */
         APR_BUCKET_REMOVE(bucket);
-        APR_BRIGADE_INSERT_TAIL(tmp_bb, bucket);
+        APR_BRIGADE_INSERT_TAIL(bb, bucket);
+        status = ap_pass_brigade(f->next, bb);
+        apr_brigade_cleanup(bb);
 
-        status = ap_pass_brigade(f->next, tmp_bb);
         if (!APR_STATUS_IS_EOF(status) && (status != APR_SUCCESS)) {
             return status;
         }
-
     }
 
-    ap_filter_setaside_brigade(f, bb);
+    ap_filter_setaside_brigade(f, tmp_bb);
     return status;
 }