Codeception ignores CURLOPT_TIMEOUT

穿精又带淫゛_ 提交于 2019-12-13 01:19:31

问题


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

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.

Are there any other settings to override default CURLOPT_TIMEOUT?


回答1:


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

Long story short, use >=2.0.15 and set the CURLOPT_TIMEOUT_MS option



来源:https://stackoverflow.com/questions/32220000/codeception-ignores-curlopt-timeout

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!