Skip to content

Commit

Permalink
Adds missing ssl-context getters.
Browse files Browse the repository at this point in the history
  • Loading branch information
mzimbres committed Dec 30, 2023
1 parent 7c788af commit e041661
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
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

0 comments on commit e041661

Please sign in to comment.