mirage / ocaml-conduit

Dereference URIs into communication channels for Async or Lwt
ISC License
83 stars 74 forks source link

Search for TLS trust anchors lazily #395

Closed craigfe closed 3 years ago

craigfe commented 3 years ago

Changes the type of Conduit_lwt_tls.X509.default_authenticator and Conduit_lwt_unix.default_ctx to be lazy, avoiding various side-effects (system interactions, logging) due to constructing these values at initialisation time.

Fixes https://github.com/mirage/ocaml-conduit/issues/388.

avsm commented 3 years ago

This'll require a corresponding PR in cohttp-lwt to do the Lazy.force, and then both can be released together.