diff --git a/app/service/utils/oss_client.py b/app/service/utils/oss_client.py index 37229ad..f37a5ce 100644 --- a/app/service/utils/oss_client.py +++ b/app/service/utils/oss_client.py @@ -14,8 +14,8 @@ from app.core.config import * logger = logging.getLogger() timeout = urllib3.Timeout(connect=1, read=10.0) # 连接超时 5 秒,读取超时 10 秒 http_client = urllib3.PoolManager( - num_pools=100, # 设置连接池大小 - maxsize=100, + num_pools=10, # 设置连接池大小 + maxsize=10, timeout=timeout, cert_reqs='CERT_REQUIRED', # 需要证书验证 retries=urllib3.Retry(