New connection state for server code + fix OpenSSL double init bug

This commit is contained in:
Benjamin Sergeant
2019-03-20 18:25:47 -07:00
parent 0999073435
commit 788c92487c
16 changed files with 164 additions and 26 deletions

View File

@@ -50,7 +50,7 @@ namespace ix
const SSL_METHOD* _ssl_method;
mutable std::mutex _mutex; // OpenSSL routines are not thread-safe
std::once_flag _openSSLInitFlag;
static std::once_flag _openSSLInitFlag;
static std::atomic<bool> _openSSLInitializationSuccessful;
};