Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

根据是否在华为云内网环境,选择是否使用HTTPS #23

Open
namoshizun opened this issue Aug 6, 2022 · 2 comments
Open

Comments

@namoshizun
Copy link

根据官方文档,是有固定的办法判断当前的网络环境是否在华为云内网的: https://support.huaweicloud.com/intl/zh-cn/obs_faq/obs_faq_0148.html

因而,建议据此来决定发起API请求时是否用HTTPS,如在内网则可直接走HTTP以去掉不必要的SSL开销,后者似乎会造成连接的不稳定。

@ramwin
Copy link

ramwin commented Oct 26, 2023

ssl开销并不大, 建议你修复根本问题,为什么网络不稳定. 有点安全意识的话都应该拒绝用http吧

@namoshizun
Copy link
Author

namoshizun commented Oct 28, 2023

请注意我说的是华为云内网环境下,而不是从公网访问OBS,不然肯定要启动SSL。内网环境下如果我追求更高的传输效率,特别是当OBS上以小文件为主时,SSL开销是显著的。

另,阿里云、AWS的对象存储SDK都支持让用户自行选择是否启用SSL,选择的权力应该给用户。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants