什么是HTTP请求被认为超时的默认时间? [英] What is the default time after which an HTTP request is deemed to have timed out?

查看:3126
本文介绍了什么是HTTP请求被认为超时的默认时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于PHP,HTTP请求被认为超时的默认时间是多少?

For PHP, what is the default time after which an HTTP request is deemed to have timed out?

我正在使用PECL HTTP扩展来发出HTTP请求。我可以在发出请求时设置超时限制,但是如果没有明确指定任何内容,我想知道默认值是什么。

I'm using the PECL HTTP extension to make HTTP requests. I can set a timeout limit when making a request, however I'd like to know what the default is if nothing is explicitly specified.

我已经通过PHP搜索了手动无济于事。我很感激证据支持的答案,例如相关手册页的链接,而不是投机性建议。

I've hunted through the PHP manual to no avail. I'd appreciate answers supported by evidence, such as a link to the relevant manual page, as opposed to speculative suggestions.

我很想知道什么是默认超时实际上不仅仅是可能是。我猜可能可能是30秒,因为这似乎是一个合理的值,但是我找不到任何确认或否认这一点。

I'm keen to find out what the default timeout actually is not just what it probably is. I can guess it may probably be 30 seconds as this seems a reasonable value, however I can find nothing to confirm or deny this.

推荐答案

我很确定你要找的是 default_socket_timeout php.ini选项。它似乎默认为60秒。

I'm quite sure what you're looking for is the default_socket_timeout php.ini option. It appears the default is 60 seconds.

这篇关于什么是HTTP请求被认为超时的默认时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆