First my environment: Flash Builder 4.1, AIR 2.6

Within AIR application, I have code like this:

private function init():void

    for ( var i:int = 0; i < 500; i++ )
        var ws:HTTPService = new HTTPService();
        ws.requestTimeout = 300;
        ws.useProxy = false;
        ws.url = "http://localhost:85/test.php";;
        ws.addEventListener(FaultEvent.FAULT, fault );
        ws.addEventListener(ResultEvent.RESULT, result);

I send multiple HTTP request to server to process, each HTTP request suppose to 
run 2 seconds then return (result or fault).

I expect the code to run up to 5 minutes. However, It run only one minutes.

I tried:
1) Increase requestTimeout, still one minute
2) Switch to different PHP server with different configuration, still one minute
3) Switch to Coldfusion, still one minute
4) Run the same code using Framework 3.5. Still one minute

Looks like when I send multiple HTTPService request, AIR/Framework override 
requestTimeout with 60 seconds. Is that true?

Just wonder where 60 seconds cut-off time come from.

Thanks very much!


Reply via email to