diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2021-05-11 16:04:10 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2021-05-12 13:06:11 +0200 |
commit | 2129ffecc084ca772af75418225c5551631e6278 (patch) | |
tree | fd530c8c6845c2e7e15965c8c73b8b2e348a9bdf /methods | |
parent | 6fe716703b2dd5c47cb6684e0b83fd1c52516d41 (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.cc | 2 |
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; } |