Titanium.Network.HTTPClient Timing Out and Doesn't Recover?

You must Login before you can answer or comment on any questions.

I'm using the HTTPclient and it connects to my web service fine. I can see the request come in and the response go out. For several requests, the Titanium networking gets the response and it works fine. Sometimes it times out. After the first timeout, the networking never recovers. I can see the request come in and then a response returned from the web service, but the device never picks it up as being returned after a timeout occurred. If I make requests in a web browser like Chrome or Safari, the server responds repeatedly.

Note: This is all in the IOs simulator, not on an actual device.

— asked 8 months ago by Martin Grasso
6 Comments
  • Have you done the .onerror function, and added a setTimeout(xxx) to your http client, to help add some error handling?

    — commented 8 months ago by Josh Lewis

  • Yes. It says it timed out from that point. Assuming I get a timeout, is there something I need to do to reset the network call? I have my setTimeout(60000). As far as handling, I'm just outputting the error so I can see it in the debugger at the moment.

    — commented 8 months ago by Martin Grasso

  • Can you Please checkout all this without using this setTimeout() function.and can you share some dummy code so that can look at your problem.what exactly it has.....

    Thanks.

    — commented 8 months ago by pankaj Goyal

  • Show 3 more comments

Your Answer

Think you can help? Login to answer this question!