From 4e0994ed22668269eb5bb7fc564a5f6468ff6a42 Mon Sep 17 00:00:00 2001 From: Michal Simon Date: Thu, 18 Jun 2020 15:12:39 +0200 Subject: [PATCH] [XrdCl] Don't recover TLS error at diffrent IP address. --- src/XrdCl/XrdClStream.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/XrdCl/XrdClStream.cc b/src/XrdCl/XrdClStream.cc index 1edd0b47e55..ebcd48e6e9e 100644 --- a/src/XrdCl/XrdClStream.cc +++ b/src/XrdCl/XrdClStream.cc @@ -689,9 +689,11 @@ namespace XrdCl "seconds.", pStreamName.c_str(), elapsed, pConnectionWindow ); //------------------------------------------------------------------------ - // If we have some IP addresses left we try them + // If we have some IP addresses left we try them, + // unless it is a TLS error (in this case the error is not due to the + // physical address but for example due to hostname verification) //------------------------------------------------------------------------ - if( !pAddresses.empty() ) + if( !pAddresses.empty() && status.code != errTlsError ) { XRootDStatus st; do