代码忽略CURLOPT_TIMEOUT [英] Codeception ignores CURLOPT_TIMEOUT
问题描述
这是acceptance.suite.yml的内容
This is the content of the acceptance.suite.yml
class_name: AcceptanceTester
modules:
enabled:
- PhpBrowser:
url: http://reoc.lo/
curl:
CURLOPT_TIMEOUT: 50000 # timeout in seconds
- \Helper\Acceptance
我这样做是因为这个问题:如何更改代码phpbrowser / mink超时
但它不工作,因为它跳过此设置,
I did this following this question: How to change codeception phpbrowser/mink timeout but it doesn't work for me as it skips this setting and it's timing out on 30 seconds which is the default.
是否还有其他设置可以覆盖默认的CURLOPT_TIMEOUT?
Are there any other settings to override default CURLOPT_TIMEOUT?
推荐答案
好的,现在回答你的问题。代码通过修复另一个错误引入了一个错误。第一个错误 https://github.com/Codeception/Codeception/issues/1984 已修复降低默认超时。然后他们意识到没有人可以设置超时,因此他们发布了此修复程序: https://github.com / Codeception / Codeception / pull / 2065
Alright, now to answer your question. Codeception introduced a bug by fixing another bug. First bug https://github.com/Codeception/Codeception/issues/1984 was fixed whcih lowered the default timeout. Then they realised that no one could set a timeout so they released this fix: https://github.com/Codeception/Codeception/pull/2065
长故事,使用> = 2.0.15并设置CURLOPT_TIMEOUT_MS选项
Long story short, use >=2.0.15 and set the CURLOPT_TIMEOUT_MS option
这篇关于代码忽略CURLOPT_TIMEOUT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!