Skip to content

Commit

Permalink
Merge pull request modcluster#267 from jajik/clear-status
Browse files Browse the repository at this point in the history
Clear the worker status when reusing cleaned worker
  • Loading branch information
jajik authored Aug 28, 2024
2 parents ce901d8 + 451e485 commit 3a926aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions native/mod_proxy_cluster/mod_proxy_cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ static apr_status_t create_worker_reuse(proxy_server_conf *conf, const char *ptr
worker->s->was_malloced = 0; /* Prevent mod_proxy to free it */
helper->isinnodes = 1;
helper->index = node->mess.id;
worker->s->status = 0; /* Reset the status and let ap_proxy_initialize_worker set it */

if ((rv = ap_proxy_initialize_worker(worker, server, conf->pool)) != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_ERR, rv, server, "create_worker: ap_proxy_initialize_worker failed %d for %s",
Expand Down

0 comments on commit 3a926aa

Please sign in to comment.