You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The commit ea81ccc (which intended to add support for options http-no-delay and http_proxy) introduced three new model.Backend attributes that clash with HTTPConnectionMode.
These new attributes override whatever value HTTPConnectionMode has previously set, even when they are undefined. Due to the order in which they were inserted into the Backend, sometimes the HTTPConnectionMode is overridden and sometimes it overrides the others.
Backends defined using new attributes created by commit ea81ccc
backend 1_http-keep-alive# This section should contain `option http-keep-alive`,# but is blank because `HTTPConnectionMode` (which is undefined) overwrote# the attribute `HTTPKeepAlive`
backend 2_http-server-close# This section should contain `option http-server-close`,# but is blank because `HTTPConnectionMode` (which is undefined) overwrote# the attribute `HTTPServerClose`
backend 3_httpclose# This section is ok. It wasn't overwritten because the attribute `Httpclose` is# evaluated after `HTTPConnectionMode` on model.Backend option httpclose
Backends defined using HTTPConnectionMode attribute
backend 4_conmode_http-keep-alive# This section is ok. It wasn't overwritten because `HTTPKeepAlive` is# evaluated before `HTTPConnectionMode` option http-keep-alive
backend 5_conmode_http-server-close# This section is ok. It wasn't overwritten because `HTTPServerClose` is# evaluated before `HTTPConnectionMode` option http-server-close
backend 6_conmode_httpclose# This section should contain `option httpclose`,# but is blank because the `Httpclose `(which is undefined) overwrote# the attribute `HTTPConnectionMode`.
Since these new attributes are mutually exclusive, perhaps it might be better to remove them and use only HTTPConnectionMode.
The text was updated successfully, but these errors were encountered:
fabianonunes
changed the title
Conflict between HTTPConnectionMode and new attributes introduced by commit ea81ccc
Conflict between HTTPConnectionMode and the new attributes introduced by commit ea81ccc
Oct 13, 2022
The commit ea81ccc (which intended to add support for options
http-no-delay
andhttp_proxy
) introduced three newmodel.Backend
attributes that clash withHTTPConnectionMode
.These new attributes override whatever value
HTTPConnectionMode
has previously set, even when they are undefined. Due to the order in which they were inserted into the Backend, sometimes theHTTPConnectionMode
is overridden and sometimes it overrides the others.For example:
The resulting config will be:
Backends defined using new attributes created by commit ea81ccc
Backends defined using
HTTPConnectionMode
attributeSince these new attributes are mutually exclusive, perhaps it might be better to remove them and use only
HTTPConnectionMode
.The text was updated successfully, but these errors were encountered: