View Full Version : I'm having some troubles when sending data to the server and waiting for a long time.

1 Nov 2013, 8:53 AM
Hello everybody,

First place, thanks so much for this great tool, I love sencha touch.
I'm having some troubles here, I'll explain my case: I need to send a huge amount of data to the server to be processed and wait for its response. The data goes to the server and during the processing the connections falls down. I can't understand why, because my timeout is setting to 15 minutes, and the processing time was about 5 minutes.
Does someone here with the same problem?


4 Nov 2013, 10:39 PM
What does your code look like?

5 Nov 2013, 2:20 AM
Here's the code: http://pastebin.com/p4dpkmXE

8 Nov 2013, 3:42 AM
Hey, I think I solved it. The problem was with the server. The server logic was this way:

-big proccess (more or less 15 seconds)
-response to the client.

I change it to this:

- header HTTP 200
- big proccess (more or less 15 seconds)
- response to the client.

When I send the response header 200 at first time, the client (sencha touch) could be connected all the time, waiting for the JSON.

8 Nov 2013, 11:00 AM
Thanks for the update. I apologize I didn't receive a email alerting me that you had posted your code. But glad you were able to resolve this issue.