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
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
Alternatively a new function for creation could be added