Commit 77a36602 authored by Volker Krause's avatar Volker Krause
Browse files

Reset TLS protocol information when reconnecting

We'll get the correct value again when the TLS handshake is done, but there
is no guarantee this does not change between two connections.
parent 38a4c094
Pipeline #82120 passed with stage
in 3 minutes and 28 seconds
......@@ -193,6 +193,7 @@ QString Session::customHostname() const
void Session::open()
{
d->m_sslVersion = QSsl::UnknownProtocol;
d->m_thread->setConnectWithTls(d->m_encryptionMode == Session::TLS);
QTimer::singleShot(0, d->m_thread, &SessionThread::reconnect);
d->startSocketTimer();
......@@ -278,6 +279,7 @@ void SessionPrivate::responseReceived(const ServerResponse &r)
void SessionPrivate::socketConnected()
{
stopSocketTimer();
m_sslVersion = QSsl::UnknownProtocol;
setState(Session::Ready);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment