Closed TowerLi closed 2 years ago
ObsClient,putObject方法过慢,耗时20多秒,卡在 DEBUG com.obs.services.internal.RestStorageService - For creating canonical string, using uri: /bucket_name/object_name。 有人可以帮忙看看吗?
ObsConfiguration obsConfiguration = new ObsConfiguration(); obsConfiguration.setEndPoint(OBSEndPoint); obsConfiguration.setConnectionTimeout(10000); obsConfiguration.setSocketTimeout(30000); obsConfiguration.setHttpProxy(new HttpProxyConfiguration("proxyAddr", 8080, "", "", "")); obsConfiguration.setHttpsOnly(false); ObsClient obsClient = new ObsClient(ak, sk, tk, obsConfiguration); // PutObjectRequest request = new PutObjectRequest(); request.setBucketName("bucket_name"); request.setObjectKey("object_name"); request.setFile(new File("D:\\fsdafasd.JPG")); request.setIsEncodeHeaders(false); PutObjectResult putObjectResult = obsClient.putObject(request);
ObsClient,putObject方法过慢,耗时20多秒,卡在 DEBUG com.obs.services.internal.RestStorageService - For creating canonical string, using uri: /bucket_name/object_name。 有人可以帮忙看看吗?