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

@ -21,6 +21,7 @@
namespace ix
{
std::atomic<bool> SocketOpenSSL::_openSSLInitializationSuccessful(false);
std::once_flag SocketOpenSSL::_openSSLInitFlag;
SocketOpenSSL::SocketOpenSSL(int fd) : Socket(fd),
_ssl_connection(nullptr),