支持配置文件指定连接中断后重试时间间隔(原来的程序写死10分钟且不可修改) #283
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
场景:
fastdfs挂了被重启后,程序没有重新建立连接,导致需要运维重启应用程序;经过分析发现是这个连接中断后的重试间隔太长了,10分钟太久了。因此希望将该参数放出来变成一个可配置项(程序里面写死了10分钟),故提交了此次pr
使用说明:
如果不配置,连接中断后重试时间间隔还是10分钟;如果需要修改,可以参考如下配置: