8000 Use std::shared_ptr for coro::net::ssl_context by jbaldwin · Pull Request #205 · jbaldwin/libcoro · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

jbaldwin
Copy link
Owner

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

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
@jbaldwin jbaldwin self-assigned this Nov 15, 2023
@jbaldwin jbaldwin merged commit 25962b6 into main Nov 15, 2023
@jbaldwin jbaldwin deleted the issue-204/ssl_context_shared_ptr branch November 15, 2023 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use std::shared_ptr for coro::ssl_context pointers
1 participant
0