Skip to content

Commit

Permalink
Clear the worker status when reusing worker
Browse files Browse the repository at this point in the history
  • Loading branch information
jajik committed Aug 21, 2024
1 parent 6877c0a commit 1d38778
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 1d38778

Please sign in to comment.