From 49eb0e4088dbe657b3e56d831024b34d5da508f4 Mon Sep 17 00:00:00 2001 From: zhouchengrong Date: Mon, 19 Aug 2024 11:06:31 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=20=20sketch=20=E6=8F=90=E5=8F=96?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=20=E5=92=8C=20minio=E8=B6=85=E6=97=B6?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/utils/oss_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(