Home  >  Article  >  Backend Development  >  guzzle 中如何获取connect time.就是连接成功需要多长时间;

guzzle 中如何获取connect time.就是连接成功需要多长时间;

WBOY
WBOYOriginal
2016-06-06 20:32:351089browse

如果能获取域名解析时间就更好了。

回复内容:

如果能获取域名解析时间就更好了。

我记得当初看源码的时候有。
现在没有做这个么项目了,给你说下思路。
guzzle他会报一个连接超时的错误,当时我追寻源码进去的时候就有看到他用了一个超时上限时间(可以自己设置)做的对比。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn