1
0
mirror of synced 2025-04-21 22:25:55 +03:00

avoid memory leaks if linked with static openssl libs (#1857)

* New function SSLServer::update_certs. Allows to update certificates while server is running

* New function SSLServer::update_certs. Added unit test

* avoid memory leaks if linked with static openssl libs

---------

Co-authored-by: CEU\schielke <Rainer.Schielke@heidelberg.com>
This commit is contained in:
Rainer Schielke 2024-06-14 21:40:03 +02:00 committed by GitHub
parent 8438df4a95
commit c1a09daf15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -726,6 +726,10 @@ private:
assert(true == static_cast<bool>(fn)); assert(true == static_cast<bool>(fn));
fn(); fn();
} }
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
OPENSSL_thread_stop ();
#endif
} }
ThreadPool &pool_; ThreadPool &pool_;