Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

timeout problem

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

timeout problem

Post by n9mfk »

Hi
I am not sure why this keeps timeout
http://n9mfk.info/cumulus/wxssgauges.php

thanks Beau
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: timeout problem

Post by water01 »

Hasn't timed out for me, seems all OK.
David
Image
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

Re: timeout problem

Post by n9mfk »

Hi David
I do not think
realtimegauges-longpoll.php is working can you take a look and see what you see?
thanks Beau
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: timeout problem

Post by water01 »

I looked at your setup using the F12 key to check the Network traffic and the long poll is working exactly as mine is.

The only difference I can see is I have a realtime update of 30 seconds in gauges.js whereas yours is 60.

Did you change anything else specifically

Code: Select all

                                   // _ajaxDelay, used by long polling, the delay between getting a response and queueing the next request, as the default PHP
                                   // script runtime timout is 30 seconds, we do not want the PHP task to run for more than 20 seconds. So queue the next
                                   // request half of the realtime interval, or 20 seconds before it is due, which ever is the larger.
        _ajaxDelay = config.longPoll ? Math.max(config.realtimeInterval - 20, 0) : config.realtimeInterval,
As Mark says the default PHP script timeout is 30 seconds so it is not a good idea to change this.

Could it be that your hosting company is using a shorter PHP timeout other than 30 seconds?
David
Image
Post Reply