瀏覽代碼

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>
Rainer Schielke 1 年之前
父節點
當前提交
c1a09daf15
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      httplib.h

+ 4 - 0
httplib.h

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