我正在尝试运行以下YQL查询:
select * from xml where url='LinkToMyServer/PerformSomeOperationAndGetXml'
但是,我得到了以下结果:
<?xml version="1.0" encoding="UTF-8"?>
<query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng"
yahoo:count="0" yahoo:created="2013-01-03T23:17:06Z" yahoo:lang="en-US">
<diagnostics>
<publiclyCallable>true</publiclyCallable>
<url execution-start-time="1" execution-stop-time="4555"
execution-time="4554" proxy="DEFAULT"><![CDATA[LinkToMyServer/PerformSomeOperationAndGetXml]]></url>
<user-time>4555</user-time>
<service-time>4554</service-time>
<build-version>32943</build-version>
</diagnostics>
<results/>
</query>有没有办法以某种方式增加超时?
谢谢!
发布于 2013-01-07 14:17:24
我不认为有办法增加YQL请求超时。我找到的唯一与此相关的文档- Paging and Table Limits -提到了YQL语句的总时间限制为30秒,但没有特别提到请求时间。
为了进行比较测试,我尝试了select * from xml where url='http://blackhole.webpagetest.org',得到的结果与您的相似- YQL超时时间不到5秒,结果集为空。
如果您无法将服务器响应时间降至5秒以下,则可能需要找到不同的解决方案。
https://stackoverflow.com/questions/14148899
复制相似问题