FastDFS connect timed out

在玩FastDFS的时候,写了一个测试类。用的ClientGlobal.initByProperties读取配置文件初始化。上传下载都成功了。
然后放到yml用initByTrackers初始化就出现连接超时,引发的读取不到trackerserver和storestorage的情况。
这里稍微怀疑了一下yml配置文件的配置信息

properties里面的

fastdfs.connect_timeout_in_seconds=5
fastdfs.network_timeout_in_seconds=30

yml里面的

connect_timeout_in_seconds: 5
network_timeout_in_seconds: 30

那么问题来了。为啥用properties初始化就能成功,yml就会失败,那肯定是yml里面的是毫秒值拉

修改一下。

connect_timeout_in_seconds: 500
network_timeout_in_seconds: 3000

你可能感兴趣的:(FastDFS)