Sfoglia il codice sorgente

Merge pull request #845 from paullouisageneau/fix-tls-handshake-state-failed-openssl

Fix WebSocket stuck connecting on handshake failure with OpenSSL
Paul-Louis Ageneau 2 anni fa
parent
commit
c7af85c344
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/impl/tlstransport.cpp

+ 1 - 0
src/impl/tlstransport.cpp

@@ -487,6 +487,7 @@ void TlsTransport::runRecvLoop() {
 		recv(nullptr);
 		recv(nullptr);
 	} else {
 	} else {
 		PLOG_ERROR << "TLS handshake failed";
 		PLOG_ERROR << "TLS handshake failed";
+		changeState(State::Failed);
 	}
 	}
 }
 }