连接阿里云的时候80timeout
Re连接阿里云的时候80timeout
补充错误:[RequestId]: Unknown
at com.aliyun.oss.common.utils.ExceptionFactory.createNetworkException(ExceptionFactory.java:31)
at com.aliyun.oss.common.comm.DefaultServiceClient.sendRequestCore(DefaultServiceClient.java:57)
at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:191)
at com.aliyun.oss.common.comm.ServiceClient.sendRequest(ServiceClient.java:151)
at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:71)
at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:65)
at com.aliyun.oss.internal.OSSMultipartOperation.uploadPart(OSSMultipartOperation.java:353)
at com.aliyun.oss.OSSClient.uploadPart(OSSClient.java:730)
at com.businessrs.client.MutiUpload$UploadPartThread.run(MutiUpload.java:203)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to goldmsg-ovcs.oss-cn-shenzhen.aliyuncs.com:80 timed out
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:125)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:150)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:575)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
at com.aliyun.oss.common.comm.DefaultServiceClient.sendRequestCore(DefaultServiceClient.java:55)
-------------------------
回2楼robertzh的帖子
我是在用分块上传,每块是5M的大小,程序jar包在linux运行,从数据库中提取map集合的文件数据,然后遍历,使用ExecutorService把多个文件数据,发送到上传的线程中去,然后上传到阿里云去,一开始能传,传成功一两个文件之后,就出现 connect to time out 或者 connect to refused 的错误
赞0
踩0