summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2021-05-11 16:04:10 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2021-05-12 13:06:11 +0200
commit2129ffecc084ca772af75418225c5551631e6278 (patch)
treefd530c8c6845c2e7e15965c8c73b8b2e348a9bdf /methods
parent6fe716703b2dd5c47cb6684e0b83fd1c52516d41 (diff)
Turn TLS handshake issues into transient errors
This makes them retriable, and brings them more into line with TCP, where handshake is also a transient error. LP: #1928100
Diffstat (limited to 'methods')
-rw-r--r--methods/connect.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/connect.cc b/methods/connect.cc
index d513a4540..044984403 100644
--- a/methods/connect.cc
+++ b/methods/connect.cc
@@ -1045,7 +1045,7 @@ ResultState UnwrapTLS(std::string const &Host, std::unique_ptr<MethodFd> &Fd,
err = tlsFd->DoTLSHandshake();
if (err < 0)
- return ResultState::FATAL_ERROR;
+ return ResultState::TRANSIENT_ERROR;
return ResultState::SUCCESSFUL;
}