What is the connection timeout for URLLoader.load?

Is there a timeout for a connection made using URLLoader.load? If so, what is its value, where is it documented, and can it be changed? Also, what event (if any) is dispatched if a timeout occurs? Is there any difference between AIR and the browser in this regard?

+6
flex flash air
source share
3 answers

The answer is here .

Update Timeout is based on the system proxy settings. On Windows (I don’t know which OS you are using) these are the same settings as IE, which can be changed here .

+5
source share

it depends on how the player works. when it is embedded in the browser, the flash player uses the browser structure for HTTP. as a result, timeouts are processed by the containing browser. standalone player and AIR have their own implementation of HTTP. But I do not know where you can set the timeout.

However, I think you can solve the problem yourself. If the timeout is long, you can simply create your own and cancel the download operation. If it's too short, you can just encapsulate the bootloader and perform some attempts on it.

If you intend to maintain a connection to the server and do not want it to close due to timeouts, I suggest you take a look at the URLStream . Then you can simply send fictitious personal content from the server.

+2
source share

URLLoader timeout is hardcoded up to 30 seconds in Flash Player. Also see this thread.

In an AIR application, you can change it by setting URLRequest.idleTimeout , but this setting does not exist in Flash Player.

+2
source share

All Articles