diff options
author | Yann Ylavic <ylavic@apache.org> | 2023-04-01 10:43:49 +0200 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2023-04-01 10:43:49 +0200 |
commit | 076ee6f967387ffb3ca442aa4a77010430f9d7a8 (patch) | |
tree | 75817cb50eaf68f741b22435e37aacb097abf906 /server | |
parent | Sync CHANGES. (diff) | |
download | apache2-076ee6f967387ffb3ca442aa4a77010430f9d7a8.tar.xz apache2-076ee6f967387ffb3ca442aa4a77010430f9d7a8.zip |
mpm_event: useful APLOG_DEBUG messages.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908883 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r-- | server/mpm/event/event.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/server/mpm/event/event.c b/server/mpm/event/event.c index 2611d33f69..29d18a943a 100644 --- a/server/mpm/event/event.c +++ b/server/mpm/event/event.c @@ -1341,14 +1341,13 @@ static void check_infinite_requests(void) static int close_listeners(int *closed) { - ap_log_error(APLOG_MARK, APLOG_TRACE6, 0, ap_server_conf, - "clos%s listeners (connection_count=%u)", - *closed ? "ed" : "ing", apr_atomic_read32(&connection_count)); if (!*closed) { int i; + ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf, + "closing listeners (connection_count=%u)", + apr_atomic_read32(&connection_count)); ap_close_listeners_ex(my_bucket->listeners); - *closed = 1; /* once */ dying = 1; ap_scoreboard_image->parent[ap_child_slot].quiescing = 1; @@ -1362,8 +1361,13 @@ static int close_listeners(int *closed) ap_queue_info_free_idle_pools(worker_queue_info); ap_queue_interrupt_all(worker_queue); + *closed = 1; /* once */ return 1; } + + ap_log_error(APLOG_MARK, APLOG_TRACE6, 0, ap_server_conf, + "closed listeners (connection_count=%u)", + apr_atomic_read32(&connection_count)); return 0; } @@ -2151,11 +2155,9 @@ static void * APR_THREAD_FUNC listener_thread(apr_thread_t * thd, void *dummy) disable_listensocks(); ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf, APLOGNO(03269) - "Too many open connections (%u), " + "Too many open connections (%u, idlers %u), " "not accepting new conns in this process", - apr_atomic_read32(&connection_count)); - ap_log_error(APLOG_MARK, APLOG_TRACE1, 0, ap_server_conf, - "Idle workers: %u", + apr_atomic_read32(&connection_count), ap_queue_info_num_idlers(worker_queue_info)); } else if (!listener_may_exit) { |