SftpreconnectIfTimeout方法改为捕获所有异常(issue#3989@Github)

This commit is contained in:
Looly
2025-07-08 15:57:19 +08:00
parent da7d6b9d81
commit b43899c6fb
2 changed files with 5 additions and 3 deletions

View File

@@ -2,12 +2,14 @@
# 🚀Changelog
-------------------------------------------------------------------------------------------------------------
# 5.8.40(2025-07-02)
# 5.8.40(2025-07-08)
### 🐣新特性
* 【captcha】 `MathGenerator`四则运算方式支持不生成负数结果pr#1363@Gitee
* 【core 】 增加`MapValueProvider``RecordConverter`并支持Record转换issue#3985@Github
### 🐞Bug修复
* 【extra 】 `Sftp``reconnectIfTimeout`方法改为捕获所有异常issue#3989@Github
-------------------------------------------------------------------------------------------------------------
# 5.8.39(2025-06-20)
@@ -33,7 +35,7 @@
* 【core 】 修复`ClassUti`isNormalClass判断未排除String问题issue#3965@Github
* 【core 】 修复`ZipUtil`中zlib和unZlib调用后资源未释放问题issue#3976@Github
* 【core 】 修复`Money`类的setAmount方法没有获取当前币种的小数位数而是使用的默认小数位和在遇到非2小数位的币种(如日元使用 0 位)会导致金额设置错误问题pr#3970@Github
* 【cahce 】 修复`AbstractCache`putWithoutLock方法可能导致的外部资源泄露问题pr#3958@Github
* 【cache 】 修复`AbstractCache`putWithoutLock方法可能导致的外部资源泄露问题pr#3958@Github
-------------------------------------------------------------------------------------------------------------
# 5.8.38(2025-05-13)

View File

@@ -226,7 +226,7 @@ public class Sftp extends AbstractFtp {
}
try {
this.cd(StrUtil.SLASH);
} catch (FtpException e) {
} catch (Exception e) {
close();
init();
}