Skip to content

Commit 8bb0004

Browse files
committed
Adds missing ssl-context getters.
1 parent 4257b2e commit 8bb0004

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,13 +678,21 @@ https://lists.boost.org/Archives/boost/2023/01/253944.php.
678678

679679
### Boost 1.85
680680

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

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

690698
* Deprecates the `async_receive` overload that takes a response. Users

include/boost/redis/connection.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,14 @@ class connection {
423423
usage get_usage() const noexcept
424424
{ return impl_.get_usage(); }
425425

426+
/// Returns the ssl context.
427+
auto const& get_ssl_context() const noexcept
428+
{ return impl_.get_ssl_context();}
429+
430+
/// Returns the ssl context.
431+
auto& get_ssl_context() noexcept
432+
{ return impl_.get_ssl_context();}
433+
426434
private:
427435
void
428436
async_run_impl(

0 commit comments

Comments
 (0)