diff --git a/source/s3_client.c b/source/s3_client.c index 6bd62bcf..590e1dd3 100644 --- a/source/s3_client.c +++ b/source/s3_client.c @@ -2108,12 +2108,11 @@ static void s_s3_client_on_acquire_http_connection( error_code, aws_error_str(error_code)); - if (error_code == AWS_IO_DNS_INVALID_NAME || error_code == AWS_IO_TLS_ERROR_NEGOTIATION_FAILURE || - error_code == AWS_ERROR_PLATFORM_NOT_SUPPORTED || error_code == AWS_IO_SOCKET_INVALID_OPTIONS) { + if (error_code == AWS_IO_DNS_INVALID_NAME || error_code == AWS_ERROR_PLATFORM_NOT_SUPPORTED || + error_code == AWS_IO_SOCKET_INVALID_OPTIONS) { /** - * Fall fast without retry + * Fail fast without retry * - Invalid DNS name will not change after retry. - * - TLS negotiation is expensive and retry will not help in most case. */ AWS_LOGF_ERROR( AWS_LS_S3_META_REQUEST,