I do not think ConnectionConfig.DEFAULT is problematic from a mutability standpoint. It is a shared singleton, but the type is effectively immutable;
Arturo On Thu, Apr 9, 2026 at 5:25 PM Gary Gregory <[email protected]> wrote: > Hi All, > > It seems to me that > org.apache.hc.client5.http.config.ConnectionConfig.DEFAULT is > problematic. It's a public global used in our own internals and that > user can do anything they want with. > > Do we really want a _shared_ mutable default to be reused in our code, > or, do we really want an immutable default set of values to be used in > certain places? > > One solution would be to deprecate ConnectionConfig.DEFAULT and inline > in its place. > > WDYT? > Gary > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
