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
@francislavoie What if we deprecate h.MaxIdleConnsPerHost (since it's a property of keep-alive) and remove it later, since it's a bug. (I'll take care of this.)
Hm ok so here's what I'm gonna do: I'm just gonna remove h.MaxIdleConnsPerHost since currently, people's configs are silently broken if they specify both (since one overwrites the other). We could return an error if both are specified and the values are different, but that's still an error all the same as if we just remove it, and I'd rather delete code than add code, especially adding it just temporarily.
So, this could break some people's configs, but it fixes a bug that they're already experiencing anyway, so this will bring their configs in line to not be buggy anymore.
I'll also split keepalive_idle_conns into two options -- it took me a minute to figure out, by the way, that you were referring to Caddyfile subdirectives, @akosyakov -- leaving that one for just setting MaxIdleConns and then making keepalive_idle_conns_per_host to set MaxIdleConnsPerHost.
Maybe I'm missing something but it does not seem to be possible because
keepalive_idle_conns
always overridesmax_idle_conns_per_host
:caddy/modules/caddyhttp/reverseproxy/httptransport.go
Lines 200 to 225 in 5ef76ff
The text was updated successfully, but these errors were encountered: