关于 OSS 多线程的支持
回 3楼(newegg11) 的帖子
我总是出现10060/10054的错误,是说timeout了。怎么修复?以下是出错:
res = oss.put_object_from_file(CONFIGS['BUCKET'], req[1], req[0])
File 'C:\Users\xxx\Workspaces\MyEclipse 8.5\MyFirstPython\LargeFileTest\oss_api.py', line 416, in put_object_from_file
res = self.put_object_from_fp(bucket, object, fp, content_type, headers)
File 'C:\Users\xxx\Workspaces\MyEclipse 8.5\MyFirstPython\LargeFileTest\oss_api.py', line 450, in put_object_from_fp
conn.send(l)
File 'C:\Python27\lib\httplib.py', line 787, in send
self.sock.sendall(data)
File 'C:\Python27\lib\socket.py', line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 10054]
赞0
踩0