2
0
mirror of https://github.com/boostorg/redis.git synced 2026-01-19 04:42:09 +00:00

Adds missing ssl-context getters.

This commit is contained in:
Marcelo Zimbres
2023-12-30 21:39:31 +01:00
parent 7c788afa7f
commit e041661b7e
2 changed files with 17 additions and 1 deletions

View File

@@ -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

View File

@@ -423,6 +423,14 @@ public:
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(