File lftp-deal-gracefully-with-ipv6-failures.patch of Package lftp.3257
From 58bfcfc2b00c6f3524ed4988ba7c5f4cd6867cfe Mon Sep 17 00:00:00 2001
From: "Alexander V. Lukyanov" <lavv17f@gmail.com>
Date: Mon, 25 Apr 2016 11:21:30 +0300
Subject: [PATCH] treat EADDRNOTAVAIL (Cannot assign requested address) as a
soft error and try other addresses.
---
src/misc.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/misc.cc b/src/misc.cc
index 445df9f..8c94331 100644
--- a/src/misc.cc
+++ b/src/misc.cc
@@ -774,6 +774,9 @@ bool temporary_network_error(int err)
#ifdef ECONNABORTED
case(ECONNABORTED):
#endif
+#ifdef EADDRNOTAVAIL
+ case(EADDRNOTAVAIL):
+#endif
return true;
}
return false;