Rationale for setting default connectionTimeout to 1 second in ApiClient?
还没有人认领这个 Issue。
评估
调研方向
首先定位 ApiClient 以及对 merchantConfig.getUserDefinedConnectionTimeout() 的处理,然后检查一秒默认值是如何定义和测试的。当该默认值的依据以及提高它所带来的权衡得到记录,或明确限定所请求的默认值变更范围时,该 issue 即得到解决。
由索引模型根据 Issue 内容生成。
描述
Hi team,
In our project, we are frequently encountering connect timed out errors, which seem to be caused by the connection timeout setting. Currently, we are not explicitly setting merchantConfig.getUserDefinedConnectionTimeout(), so the default value of 1 second is being used.
Personally, I feel that 1 second is quite short, especially considering that network conditions can vary, and sometimes a proxy is involved. We are considering increasing this timeout to around 10 seconds to see if it helps resolve the issue.
I wanted to ask:
- Is there a specific reason why the default connection timeout is set to just 1 second?
- Are there any concerns or trade-offs we should be aware of if we increase it to 10 seconds?
Thanks in advance for your insights!
- 主要语言
- Java
- 星标
- 29
- 派生
- 50
- 平均合并
- 28 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CyberSource/cybersource-rest-client-java 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 45/100
CyberSource/cybersource-rest-client-java#241 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 45/100
-
难度 2/5 1-3 小时 新手友好度 58/100
-
难度 3/5 1-2 天 新手友好度 42/100
CyberSource/cybersource-rest-client-java#235 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
查看 CyberSource/cybersource-rest-client-java 的全部 Issue
相似的 Issue
-
`Processing lsp` never exits and leaves orphaned processes可能已有人在做 @overcast302 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 72/100
processing/processing4#1578 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 60/100
维护者通常 1 天内回复
-
[BUG] S3 CORS responses omit Access-Control-Allow-Credentials for matched origins可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
securityHeaders replaces a route's own Content-Security-Policy (0.9.9; weakens embedders' pages)未关闭bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
sqlcipher/sqlcipher-android#97 · 1 条评论 ·