Join GitHub today
Optionally Pass in the ConnectionContext when creating the TLS Manager #228
For profiling purposes I need to create many (~1000) separate Managers. This is fine for HTTP, but if I need TLS I run into memory and performance issues due to the slow and expensive creation of the ConnectionContext.
I would like to be able to create a single certificate store and share it between Managers.
One way to enable this would be to modify the current mkManagerSettings
mkManagerSettings :: TLSSettings -> Maybe SockSettings -> Maybe ConnectionContext -> ManagerSettings
Alternatively a new function for creation could be added
mkManagerSettingsWithContext :: TLSSettings -> Maybe SockSettings -> Maybe ConnectionContext -> ManagerSettings
I looked closer at the code and see the new
I'm not currently blocked by this FWIW, but will either have to fork http-client temporarily or will become blocked in the next few weeks.