On Sun, Jun 17, 2012 at 12:58:07PM -0500, Glenn Maynard wrote:
> I'm on a new ISP, and it has a problem: it randomly corrupts TCP packets.
> I haven't managed to get my ISP to fix it, so I'm doing what I can to work
> around it.  With HTTPS downloads, I end up getting these errors:
> 
> **** recv: gnutls_record_recv: Decryption has failed.
> get: Fatal error: gnutls_record_recv: Decryption has failed.

This patch should make this error non-fatal.

-- 
   Alexander.
diff --git a/src/lftp_ssl.cc b/src/lftp_ssl.cc
index 34d538f..11ee6e4 100644
--- a/src/lftp_ssl.cc
+++ b/src/lftp_ssl.cc
@@ -499,7 +499,8 @@ bool lftp_ssl_gnutls::check_fatal(int res)
    if(!gnutls_error_is_fatal(res))
       return false;
    if((res==GNUTLS_E_UNEXPECTED_PACKET_LENGTH
-       || res==GNUTLS_E_PUSH_ERROR || res==GNUTLS_E_PULL_ERROR)
+       || res==GNUTLS_E_PUSH_ERROR || res==GNUTLS_E_PULL_ERROR
+       || res==GNUTLS_E_DECRYPTION_FAILED)
    && temporary_network_error(errno))
       return false;
    return true;
_______________________________________________
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Reply via email to