diff --git a/README.md b/README.md index 436aa687..aa6d550d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/include/boost/redis/connection.hpp b/include/boost/redis/connection.hpp index 664c6e5d..36131c3a 100644 --- a/include/boost/redis/connection.hpp +++ b/include/boost/redis/connection.hpp @@ -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(