Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,12 @@ static void pool_start_healthcheck_timer(async_pool_t *pool)
return;
}

/* The healthcheck timer is a background heartbeat, not application work.
* Mark it HIDDEN so it does not count toward active_event_count — otherwise
* an idle pool keeps the reactor loop alive and blocks a graceful worker
* shutdown (e.g. on hot-reload), tripping the scheduler's loop-alive assert. */
ZEND_ASYNC_EVENT_SET_HIDDEN(&pool->healthcheck_timer->base);

/* Use inline callback embedded in pool structure */
pool->healthcheck_callback.ref_count = 1;
pool->healthcheck_callback.callback = pool_healthcheck_timer_callback;
Expand Down
Loading