jbaldwin / libcoro

C++20 coroutine library
Apache License 2.0
599 stars 62 forks source link

Use std::shared_ptr for coro::net::ssl_context #205

Closed jbaldwin closed 11 months ago

jbaldwin commented 11 months ago

Previously this was a raw pointer to allow for the user to pass in a global ssl context across various tcp_clients... this is pretty unsafe and I previously moved away from this model for the coro::io_scheduler handle that gets passed into the coro::net::tcp_client. To be consistent and safe this pointer is being moved to an std::shared_ptr.

Closes #204