Hi I wanted to put a persistence cookie in the defaults section of my config, but I ran into 2 problems on reloading HAproxy as a result:
- Every tcp backend in my config throws a warning like this: [WARNING] 185/153532 (25427) : config : 'cookie' statement ignored for proxy 'sometcpbackend' as it requires HTTP mode. - My stats config doesn't have a server list, so reload fails with: [ALERT] 185/153532 (25427) : config : HTTP proxy stats has a cookie but no server list ! My stats listener looks like this: listen stats 0.0.0.0:9111 mode http stats uri / For the first case, I understand why the warning is emitted, but perhaps it'd make sense to only output the warning if the cookie definition is specifically attempted on the tcp proxy itself, rather than inherited from the "defaults" section. Come to think of it, perhaps TCP backends should just not inherit the cookie definition at all? I'm not great at tracing my way through C code unfortunately, so I have no idea how practical these are. For the second case, I'm not sure if my stats listener is "wrong" in some way. I inherited the config more than 2 years ago, and while I've become fairly familiar with most of it, I've never really needed to tamper with the stats part, so it may be it isn't optimally defined, but looking at the docs has not helped me see what's wrong, if anything. Help! :-( Regards, Graeme.

