Browse Source

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 years ago
parent
commit
c7af85c344
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/impl/tlstransport.cpp

+ 1 - 0
src/impl/tlstransport.cpp

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