问题
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