Ajax increase timeout

587 views
Skip to first unread message

Martin Bay

unread,
Mar 25, 2012, 5:09:02 PM3/25/12
to phon...@googlegroups.com
I'm playing with Ajax long polling, but I get a timeout after exactly 120 seconds. How do I increase this timeout in PG?

I'm using version 1.6.0rc1.

Giacomo Balli

unread,
Mar 26, 2012, 2:18:20 AM3/26/12
to phonegap
first thing is assessing who is triggering the timeout (request/
phonegap/server?)

Also, there supposedly is a timeout setting (http://www.w3.org/TR/
XMLHttpRequest/#the-timeout-attribute)

Martin Bay

unread,
Mar 26, 2012, 6:03:59 AM3/26/12
to phon...@googlegroups.com
The server does not timeout - I made it sleep for 10 min and tested in my browser. After 10 minutes, the output was sent to the browser as it should.

I tried adding this to my main activity, but no change - still times out after 120 seconds:

super.setIntegerProperty("​loadUrlTimeoutValue", 60000);

Bryce Curtis

unread,
Mar 26, 2012, 10:25:28 AM3/26/12
to phon...@googlegroups.com
You need to send a do-nothing response back from the server before this timeout period.   When your client receives this, it ignores it and sends another request.  From what I have found, the timeout period is set by Android and is not adjustable.

--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com

Pablo Soto Torres

unread,
Jul 10, 2013, 4:36:44 AM7/10/13
to phon...@googlegroups.com
Same insue here!! Do you find any solution?

Martin Bay

unread,
Jul 18, 2013, 3:51:22 AM7/18/13
to phon...@googlegroups.com
Afraid not.

Eloy Gonzalez Martínez

unread,
Jan 8, 2014, 5:14:35 AM1/8/14
to phon...@googlegroups.com
Excuse, have you found any solution?

Martin Bay Pedersen

unread,
Jan 9, 2014, 2:44:17 AM1/9/14
to phon...@googlegroups.com
Den 08-01-2014 11:14, Eloy Gonzalez Mart�nez skrev:
> Excuse, have you found any solution?
> --
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>
> To compile in the cloud, check out build.phonegap.com
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "phonegap" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/phonegap/S-0u8nK2t4I/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> phonegap+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Afraid not.
Reply all
Reply to author
Forward
0 new messages