denverdino / aliyungo

Go SDK for Aliyun (Alibaba Cloud) - Golang API for ECS, OSS, DNS, SLB, RDS, RAM, MNS, STS, SLS, MQ, Push, OpenSearch, DM, Container Service etc.
Apache License 2.0
843 stars 245 forks source link

add envs to set http timeout #463

Closed thousandhu closed 3 years ago

thousandhu commented 3 years ago

now we can only set TLS timeout to http client. If we want to set other timeout to http client, we can't find any method. In our project, we invoke aliyun api across counties,for example from Singapore to China. We always meet different kind of timeout because of the net unstable. So we want to set different kind of timeout.

This pr add env to other four env to set different kind of timeout.

thousandhu commented 3 years ago

thanks @menglingwei for the review