diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-01-27 17:39:44 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-01-27 17:39:44 -0700 |
commit | f95a05571afe962dc9aa1ffe6995444c06026910 (patch) | |
tree | ceeb3e7df6cc267dd3939c6df05fae39c1c2c36c | |
parent | 344694d50aa941e90c09108e453a17b273130c14 (diff) | |
download | mailscripts-f95a05571afe962dc9aa1ffe6995444c06026910.tar.gz |
gmi2email: treat SSL connection failure as a temporary failure
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rwxr-xr-x | gmi2email | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -109,7 +109,9 @@ foreach my $sub (<$subs_fh>) { ($type, $data) = gemini_fetch($sub, abs_links => 1); } catch { my ($code) = /"gemini error: ([1-6])/; - if (defined $code and $code == 4 or /missing or invalid gemini response/) { + if ( defined $code and $code == 4 + or /missing or invalid gemini response/ + or /failed to establish SSL connection/) { warn "temporary failure retrieving $sub"; $next = 1, return; # try again next run } else { |