Skip to content
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

Adds missing ssl-context getters. #173

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -678,13 +678,21 @@ https://lists.boost.org/Archives/boost/2023/01/253944.php.

### Boost 1.85

* Fixes [issue 170](https://github.com/boostorg/redis/issues/170).
* ([Issue 170](https://github.com/boostorg/redis/issues/170))
Under load and on low-latency networks it is possible to start
receiving responses before the write operation completed and while
the request is still marked as staged and not written. This messes
up with the heuristics that classifies responses as unsolicied or
not.

* ([Issue 168](https://github.com/boostorg/redis/issues/168)).
Provides SSL context getters. The user wants to be able to pass the
`ssl::context` in the connection constructor as is done in Boost.Beast
and Boost.MySql. However, doing so would penalize users on plain
connections, which would have to start passing a dummy context on
every instantiation. If there is more convincing argument I will
change this in the future.

### Boost 1.84 (First release in Boost)

* Deprecates the `async_receive` overload that takes a response. Users
Expand Down
8 changes: 8 additions & 0 deletions include/boost/redis/connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,14 @@ class connection {
usage get_usage() const noexcept
{ return impl_.get_usage(); }

/// Returns the ssl context.
auto const& get_ssl_context() const noexcept
{ return impl_.get_ssl_context();}

/// Returns the ssl context.
auto& get_ssl_context() noexcept
{ return impl_.get_ssl_context();}

private:
void
async_run_impl(
Expand Down