BUG/MEDIUM: config: don't pick unset values from last defaults section

Since commit 1.3.14 with commit 1fa3126ec ("[MEDIUM] introduce separation
between contimeout, and tarpit + queue"), check_config_validity() looks
at the last defaults section to update all proxies' queue and tarpit
timeouts if they were not set!

This was apparently an attempt to properly set them on the fallback values,
except that the fallback values were taken from the default proxy before
looking at the current proxy itself. The worst part of it is that it might
have randomly worked by accident for some configurations when there was a
single defaults section, but has certainly caused too short queue
expirations once another defaults section was added later in the file with
these explicitly defined.

Let's remove the defproxy part and keep only the curproxy ones. This could
be backported everywhere, the bug has been there for 13 years.

(cherry picked from commit 937c3ead34becd6851572a8280831d760f612a09)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 759b7a594d746271addcb214a1ed275b9dcfb128)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 29934fbb22598389a8b5fb0db817545173ed6550)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 93275546cb8bb812b05768f1a1e86f0492b917c4)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed