struct server *srv_ssl = NULL;
#endif
- if (global.mode & MODE_MWORKER)
+ /* the httpclient is not usable in the master process */
+ if (master)
return ERR_NONE;
px = alloc_new_proxy(id, PR_CAP_LISTEN|PR_CAP_INT|PR_CAP_HTTPCLIENT, &errmsg);
*/
static int httpclient_precheck()
{
- /* initialize the default httpclient_proxy which is used for the CLI and the lua */
+ /* the httpclient is not usable in the master process */
+ if (master)
+ return ERR_NONE;
+ /* initialize the default httpclient_proxy which is used for the CLI and the lua */
httpclient_proxy = httpclient_create_proxy("<HTTPCLIENT>");
if (!httpclient_proxy)
return ERR_RETRYABLE;
struct server *srv_ssl = NULL;
#endif
- if (global.mode & MODE_MWORKER)
+ /* the httpclient is not usable in the master process */
+ if (master)
return ERR_NONE;
if (!(curproxy->cap & PR_CAP_HTTPCLIENT))