Commit a67e97ee by jianshuqin

设置上传文件超时时间

parent e3c19c80
...@@ -135,6 +135,7 @@ public class CostFileUtil { ...@@ -135,6 +135,7 @@ public class CostFileUtil {
Configuration cfg = new Configuration(Region.region2()); Configuration cfg = new Configuration(Region.region2());
//2、其他参数参考类注释 //2、其他参数参考类注释
cfg.useHttpsDomains = false; cfg.useHttpsDomains = false;
cfg.connectTimeout = 120;
cfg.proxy = new ProxyConfiguration("10.0.8.190", 9998); cfg.proxy = new ProxyConfiguration("10.0.8.190", 9998);
// cfg.proxy = new ProxyConfiguration("106.55.104.91", 9998); // cfg.proxy = new ProxyConfiguration("106.55.104.91", 9998);
UploadManager uploadManager = new UploadManager(cfg); UploadManager uploadManager = new UploadManager(cfg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment