Peers' frontends must have logging disabled by default, which was not
the case, so logs were randomly emitted upon restart, sometimes causing
a new process to fail to replace the old one.
defproxy.state = PR_STNEW;
defproxy.maxconn = cfg_maxpconn;
defproxy.conn_retries = CONN_RETRIES;
- defproxy.logfac1 = defproxy.logfac2 = -1; /* log disabled */
defproxy.defsrv.inter = DEF_CHKINTR;
defproxy.defsrv.fastinter = 0;
/* Perform the most basic initialization of a proxy :
* memset(), list_init(*), reset_timeouts(*).
- * Any new proxy should be initialized via this function.
+ * Any new proxy or peer should be initialized via this function.
*/
void init_new_proxy(struct proxy *p)
{
/* Timeouts are defined as -1 */
proxy_reset_timeouts(p);
p->tcp_rep.inspect_delay = TICK_ETERNITY;
+ p->logfac1 = p->logfac2 = -1; /* log disabled */
}
/*