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

Travis CI 测试的时候无法连接到 https://api.pingxx.com #32

Open
dcb9 opened this issue Apr 19, 2016 · 3 comments
Open

Travis CI 测试的时候无法连接到 https://api.pingxx.com #32

dcb9 opened this issue Apr 19, 2016 · 3 comments

Comments

@dcb9
Copy link

dcb9 commented Apr 19, 2016

https://travis-ci.org/idarex/pingpp-yii2/builds/123982137

@samurai00
Copy link
Contributor

这个是不是服务器的原因,比如国外的服务器之类的,有部分国外服务器连接我们的 API 会超时。

@dcb9
Copy link
Author

dcb9 commented Apr 19, 2016

看了下 ApiRequestor 的源码,这里把 timeout 写死了,应该给出一定的自由空间吧,这样用户可以根据自己的环境配置对应的 timeout。 https://github.com/PingPlusPlus/pingpp-php/blob/master/lib/ApiRequestor.php#L267-L268

@samurai00
Copy link
Contributor

这个你可以直接改。不过,这个值已经很长了。网络没问题的情况下,这两个值的其实没多大意义。

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