소스 검색

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 년 전
부모
커밋
c7af85c344
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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);
 	}
 }