Thank you! Good to know there is such limit.
George --- In flexcoders@yahoogroups.com, Alex Harui <aharui@...> wrote: > > I think there is an upper-bound on the number of requests you can make per > frame for Flash and maybe for AIR too. > > > On 7/29/11 7:23 PM, "georgemeng2011" <georgemeng2000@...> wrote: > > > > > > > I have an flex application sends HTTPService multiple times to server, > however, not all get return. > > My server is Coldfusion, I have turn following in Coldfusion: > > Maximum number of simultaneous Template requests 400 > Maximum number of simultaneous Flash Remoting requests 400 > Maximum number of simultaneous Web Service requests 400 > Maximum number of simultaneous CFC function requests 400 > Maximum number of running JRun threads 1600 > Maximum number of queued JRun Threads 10000 > > However, when I send 500 request, I always get about 360 result/fault back, > any ideas? > > Flex AIR application code: > > <?xml version="1.0" encoding="utf-8"?> > <s:WindowedApplication > xmlns:fx="http://ns.adobe.com/mxml/2009" > xmlns:s="library://ns.adobe.com/flex/spark" > xmlns:mx="library://ns.adobe.com/flex/mx" > creationComplete="init()" > width="830" > height="433"> > <fx:Script> > <![CDATA[ > import mx.rpc.events.FaultEvent; > import mx.rpc.events.ResultEvent; > import mx.rpc.http.HTTPService; > private var _index:int = 0; > private function init():void > { > for ( var i:int = 0; i < 500; i++ ) > { > var ws:HTTPService = new HTTPService(); > ws.useProxy = false; > ws.url = "http://CFServer/Hello.cfm"; > ws.addEventListener(FaultEvent.FAULT, result ); > ws.addEventListener(ResultEvent.RESULT, result); > ws.send(); > } > } > private function result(e:Event):void > { > _index++; > trace( _index.toString() + e.type ); > } > ]]> > </fx:Script> > </s:WindowedApplication> > > Coldfusion Code: Hello.cfm > > <cfoutput>Hello World</cfoutput> > > Thanks! > > George > > > > > > > -- > Alex Harui > Flex SDK Team > Adobe System, Inc. > http://blogs.adobe.com/aharui >