IMPORTANT! The server may go down soon - possibly permanently. Please read the latest post in Announcements and News

FTP is broken. I strongly advise all users using my server for their web site to make alternative arrangements.

Outgoing mail is disabled because of the malware on the server. No new forum registrations are currently possible, and mail to the forum administrator will not work.

Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

timeout problem

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

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

timeout problem

Postby n9mfk » Wed Mar 18, 2015 5:01 pm

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

thanks Beau

water01
Posts: 1465
Joined: Sat Aug 13, 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: timeout problem

Postby water01 » Wed Mar 18, 2015 5:47 pm

Hasn't timed out for me, seems all OK.

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

Re: timeout problem

Postby n9mfk » Wed Mar 18, 2015 7:30 pm

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: 1465
Joined: Sat Aug 13, 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: timeout problem

Postby water01 » Wed Mar 18, 2015 11:52 pm

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?


Return to “SteelSeries Gauges”

Who is online

Users browsing this forum: No registered users and 3 guests