<s:HTTPService id="svcList" url="http://localhost/index.php" method="GET" result="svcList_resultHandler(event)" fault="svcList_faultHandler(event)" requestTimeout="300">
<s:request xmlns="">
<mod>module</mod>
<op>operation</op>
</s:request>
</s:HTTPService>
此項操作需要比平常更長的執行30秒後得到一個錯誤,所以我改變最大的執行時間爲PHP爲120秒。
通過瀏覽器請求時,即http://localhost/index.php?mod=module&op=operation
我已經檢查了故障事件對象的答案,找到這個在faultDetails Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://localhost/index.php" errorID=2032]. URL: http://localhost/index.php
腳本正確運行是否有請求執行時間限制?
編輯:使用requetTimeout
了。
感謝
救星,將requestTimeout是不是爲我使用Flex 4 – Savid 2013-04-17 05:53:46
救星確實工作!!!! – Dave 2013-09-18 15:05:42