mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-27 13:16:11 +03:00
handled SSL connect failed on client side #4313
This commit is contained in:
parent
10e6b5ad63
commit
3aa6bed669
@ -59,9 +59,9 @@ SecureSocket::SecureSocket(
|
|||||||
|
|
||||||
SecureSocket::~SecureSocket()
|
SecureSocket::~SecureSocket()
|
||||||
{
|
{
|
||||||
|
if (m_ssl->m_ssl != NULL) {
|
||||||
SSL_shutdown(m_ssl->m_ssl);
|
SSL_shutdown(m_ssl->m_ssl);
|
||||||
|
|
||||||
if (m_ssl->m_ssl != NULL) {
|
|
||||||
SSL_free(m_ssl->m_ssl);
|
SSL_free(m_ssl->m_ssl);
|
||||||
m_ssl->m_ssl = NULL;
|
m_ssl->m_ssl = NULL;
|
||||||
}
|
}
|
||||||
@ -308,8 +308,10 @@ SecureSocket::checkResult(int n)
|
|||||||
case SSL_ERROR_SSL:
|
case SSL_ERROR_SSL:
|
||||||
// a failure in the SSL library occurred
|
// a failure in the SSL library occurred
|
||||||
LOG((CLOG_DEBUG2 "SSL_ERROR_SSL"));
|
LOG((CLOG_DEBUG2 "SSL_ERROR_SSL"));
|
||||||
|
sendEvent(getEvents()->forISocket().disconnected());
|
||||||
sendEvent(getEvents()->forIStream().inputShutdown());
|
sendEvent(getEvents()->forIStream().inputShutdown());
|
||||||
showError();
|
showError();
|
||||||
|
retry = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -326,7 +326,7 @@ ClientApp::handleClientDisconnected(const Event&, void*)
|
|||||||
m_events->addEvent(Event(Event::kQuit));
|
m_events->addEvent(Event(Event::kQuit));
|
||||||
}
|
}
|
||||||
else if (!m_suspended) {
|
else if (!m_suspended) {
|
||||||
m_client->connect();
|
scheduleClientRestart(nextRestartTimeout());
|
||||||
}
|
}
|
||||||
updateStatus();
|
updateStatus();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user