fix: extend tencent cos upload timeout

This commit is contained in:
hy001 2026-05-15 12:51:05 +08:00
parent b2be53f398
commit 9a893d9cc0
2 changed files with 8 additions and 2 deletions

View File

@ -32,6 +32,12 @@ red-circle:
bucket-name: ${LIKEI_TENCENT_COS_BUCKET}
region: ${LIKEI_TENCENT_COS_REGION}
access-url: ${LIKEI_TENCENT_COS_ACCESS_URL}
connection-timeout-ms: ${LIKEI_TENCENT_COS_CONNECTION_TIMEOUT_MS:15000}
connection-request-timeout-ms: ${LIKEI_TENCENT_COS_CONNECTION_REQUEST_TIMEOUT_MS:15000}
socket-timeout-ms: ${LIKEI_TENCENT_COS_SOCKET_TIMEOUT_MS:900000}
request-timeout-ms: ${LIKEI_TENCENT_COS_REQUEST_TIMEOUT_MS:900000}
shutdown-timeout-ms: ${LIKEI_TENCENT_COS_SHUTDOWN_TIMEOUT_MS:10000}
max-error-retry: ${LIKEI_TENCENT_COS_MAX_ERROR_RETRY:0}
instant-message:
broadcast-group:
LOTFUN: "${LIKEI_IM_BROADCAST_GROUP_LOTFUN}"

View File

@ -19,8 +19,8 @@ public class TencentCosProperties {
private String accessUrl = "";
private int connectionTimeoutMs = 15000;
private int connectionRequestTimeoutMs = 15000;
private int socketTimeoutMs = 120000;
private int requestTimeoutMs = 120000;
private int socketTimeoutMs = 900000;
private int requestTimeoutMs = 900000;
private int shutdownTimeoutMs = 10000;
private int maxErrorRetry = 0;