AS3 URLRequest Timeout (not AIR)

半城伤御伤魂 提交于 2020-02-25 05:03:39

问题


I am building a web-app that should send some data to the server. Flash has a built in timeout limit for URLRequest set to 30 seconds. I cannot use AIR (as this solution should run from the browser) and sometimes the request is for more than 30seconds.

Flash ignores any data received after 30 seconds and sends an IO Error event although when I check the server, the script would have been executed.

Is there any solution to modify the timeout limit? Maybe a smarter way? (any libraries to divide a huge request into smaller chunks and verify they are sent to the server)?


回答1:


You can try to register JS callback and use requests from JS.



来源:https://stackoverflow.com/questions/5153751/as3-urlrequest-timeout-not-air

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