mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-10 22:33:19 -05:00
MINOR: httpclient/mworker: disable in the master process
Disable the httpclient in the master process.
This commit is contained in:
parent
cf5cb0b524
commit
c6ceba3170
1 changed files with 6 additions and 0 deletions
|
|
@ -989,6 +989,9 @@ static int httpclient_precheck()
|
|||
int err_code = 0;
|
||||
char *errmsg = NULL;
|
||||
|
||||
if (global.mode & MODE_MWORKER_WAIT)
|
||||
return 0;
|
||||
|
||||
httpclient_proxy = alloc_new_proxy("<HTTPCLIENT>", PR_CAP_LISTEN|PR_CAP_INT, &errmsg);
|
||||
if (!httpclient_proxy) {
|
||||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
|
|
@ -1080,6 +1083,9 @@ static int httpclient_postcheck()
|
|||
struct proxy *curproxy = httpclient_proxy;
|
||||
char *errmsg = NULL;
|
||||
|
||||
if (global.mode & MODE_MWORKER_WAIT)
|
||||
return 0;
|
||||
|
||||
/* copy logs from "global" log list */
|
||||
list_for_each_entry(logsrv, &global.logsrvs, list) {
|
||||
struct logsrv *node = malloc(sizeof(*node));
|
||||
|
|
|
|||
Loading…
Reference in a new issue