On Wed, Feb 25, 2015 at 09:34:06AM +0000, Konstantin vz'One Enchant wrote:
> I have a config:
> ----
> backend some_backend
>         acl is_copy_req method COPY hdr(Destination)
>         acl is_copy_req method PUT hdr(X-Copy-From)
>         timeout server 15m if is_copy_req
> ----
> It's worked in 1.5-dev21. But now, if I run last version (1.5.11) I get
> error on start:
> ----
> [ALERT] 055/123058 (29566) : parsing [/etc/haproxy/haproxy.cfg:76] :
> 'timeout server' : unexpected extra argument 'if' after value '15m'.
> [ALERT] 055/123058 (29566) : parsing [/etc/haproxy/haproxy.cfg:87] :
> 'timeout server' : unexpected extra argument 'if' after value '15m'.
> [ALERT] 055/123058 (29566) : Error(s) found in configuration file :
> /etc/haproxy/haproxy.cfg
> [ALERT] 055/123058 (29566) : Fatal errors found in configuration.
>    ...fail!
> ----
> 
> Is it regression?

No, it is an improvement because previously the parser did not detect the
extra words on the config line and now it correctly informs you that
"timeout" doesn't take any such argument. Thus in the past you were
believing that your config was working fine, while instead, it used
to unconditionally apply the 15m timeout to all connections.

Best regards,
Willy


Reply via email to