ssl fix
Some checks failed
Docker Build & Publish / build (push) Failing after 1h12m36s

This commit is contained in:
Nicholas Orlowsky 2025-02-20 13:48:30 -05:00
parent f1195d1f04
commit f09b261b62
2 changed files with 4 additions and 3 deletions

View file

@ -89,12 +89,13 @@ int listen_loop(int port_number, backends::backend& be, bool tls) {
socket::anthracite_socket* client_sock; socket::anthracite_socket* client_sock;
if (tls){ if (tls){
client_sock = new socket::openssl_socket(*dynamic_cast<socket::openssl_socket*>(socket)); socket::openssl_socket* ssl_sock = dynamic_cast<socket::openssl_socket*>(socket);
client_sock = new socket::openssl_socket(*ssl_sock);
} else { } else {
client_sock = new socket::anthracite_socket(*socket); client_sock = new socket::anthracite_socket(*socket);
} }
std::thread(handle_client, socket, std::ref(be), std::ref(fb), std::ref(thread_wait_mutex), std::ref(thread_wait_condvar), std::ref(active_threads)).detach(); std::thread(handle_client, client_sock, std::ref(be), std::ref(fb), std::ref(thread_wait_mutex), std::ref(thread_wait_condvar), std::ref(active_threads)).detach();
} }
delete socket; delete socket;

View file

@ -6,6 +6,6 @@
export OPENSSL_DIR="${pkgs.openssl.dev}" export OPENSSL_DIR="${pkgs.openssl.dev}"
export PKG_CONFIG_PATH="${pkgs.openssl.dev}/lib/pkgconfig" export PKG_CONFIG_PATH="${pkgs.openssl.dev}/lib/pkgconfig"
export OPENSSL_NO_VENDOR=1 export OPENSSL_NO_VENDOR=1
export OPENSSL_LIB_DIR="${pkgs.lib.getLib pkgs.openssl}/lib" export OPENSSL_LIB_DIR="${pkgs.lib.getLib pkgs.openssl}/lib"
''; '';
} }