I have an iPhone app that uses ASIHTTPRequest to communicate with the REST service on my server. When I run the simulator, it works fine, but when I sit on the phone, I get strange behavior.
The first time I click the button that initiates the request, I immediately return the results, and everything is in order. From now on, when I press the button to start the connection, it takes about 2-3 minutes to connect. It seems that the ASIHTTPRequest, which I started first (and from which I already got the correct results), did not end. Is there any magic I need to use to complete the initial request before starting the next? I assumed that since the -start method was returned, and I have results from the server, that the original request was completed, and I could run another.
Any ideas?
thanks
- Steve
source share