Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

release/2.0: Use a shared MultiAgent in CurlHandler when using LibreSSL backend on macOS #22243

Commits on Jul 13, 2017

  1. Use a shared MultiAgent in CurlHandler when using LibreSSL backend on…

    … macOS
    
    LibreSSL needs locks initialized in order to be used safely from
    multiple threads, which happens when multiple HttpClients are used.  But
    we don't currently have a good way to perform that initialization as we
    do for OpenSSL.  As a workaround, add a shared MultiAgent that's
    initialized when LibreSSL is used on macOS, and use that same MultiAgent
    from all CurlHandler instances rather than giving each their own.  Since
    MultiAgent is 1:1 with a thread, all HttpClient's will then end up
    sharing the same libcurl event loop thread, and we'll serialize all of
    our interactions with libcurl and thus hopefully with LibreSSL.
    stephentoub committed Jul 13, 2017
    Configuration menu
    Copy the full SHA
    a25c4c7 View commit details
    Browse the repository at this point in the history