This commit is contained in:
		
							parent
							
								
									f1195d1f04
								
							
						
					
					
						commit
						f09b261b62
					
				
					 2 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
					@ -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;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue