Skip to content

Commit 8ff3741

Browse files
YangSen-qnYangSen-qn
andauthored
storage connect timeout to 30s (#25)
Co-authored-by: YangSen-qn <yangsen@qiniu.com>
1 parent d645c60 commit 8ff3741

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v1.2.3
2+
- 存储请求链接超时调整为 30s
3+
14
# v1.2.2
25
- 适配 GPT 4 大模型
36

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "qiniu-mcp-server"
3-
version = "1.2.2"
3+
version = "1.2.3"
44
description = "A MCP server project of Qiniu."
55
requires-python = ">=3.12"
66
authors = [

src/mcp_server/core/storage/storage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class StorageService:
1515
def __init__(self, cfg: config.Config = None):
1616
# Configure boto3 with retries and timeouts
1717
self.s3_config = S3Config(
18-
retries=dict(max_attempts=3, mode="adaptive"),
19-
connect_timeout=5,
18+
retries=dict(max_attempts=2, mode="adaptive"),
19+
connect_timeout=30,
2020
read_timeout=60,
2121
max_pool_connections=50,
2222
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
VERSION = '1.2.2'
2+
VERSION = '1.2.3'

0 commit comments

Comments
 (0)