Skip to content

Commit

Permalink
Handle timeout with TLS 1.3 and client certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
equeim committed Jan 2, 2025
1 parent 9a10a2c commit 92397be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/rpc/requestrouter_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,12 @@ namespace {
}
const auto error = waitForError("foo"_l1, QByteArray{});
QCOMPARE(error.has_value(), true);
QCOMPARE(error.value(), RpcError::ConnectionError);
if (error.value() == RpcError::TimedOut) {
// Can happen with TLS 1.3
warning().log("Connecting to server requiring client certificate timed out");
} else {
QCOMPARE(error.value(), RpcError::ConnectionError);
}
}

void checkClientCertificateSuccess() {
Expand Down

0 comments on commit 92397be

Please sign in to comment.