[mapguide-internals] Please review AjaxViewerPingServer.patch

Tom Fukushima tom.fukushima at autodesk.com
Wed Jul 15 12:31:05 EDT 2009

Oops, I applied that patch already.  Christine, please create a new patch if required and attach it to the ticket.  Also, could these review comments be put in the ticket; I think that helps to make sure things are in a central location.


-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Kenneth Skovhede, GEOGRAF A/S
Sent: Wednesday, July 15, 2009 12:28 AM
To: MapGuide Internals Mail List
Subject: Re: [mapguide-internals] Please review AjaxViewerPingServer.patch

I have a few comments.

1) The function name in line 455 is slightly misspelled, and referenced 
from line 435.
2) The webAgent and clientAgent variables are now replicated in both 
ajaxmappane and mainframe.templ
3) Same goes for the msie check in line 460
4) Same goes for encodeComponent function in line 406
5) Is the ParseLocalizedFloat function required? Does the server return 
a localized timeout value? And is it not supposed to be an int?
6)  In line 434 you divide the time by 5 seconds, resulting in the 
number of checks pr. 5 seconds. You then pass this to setInterval. 
Should this not be:
intervalID = window.setInterval(GetSeverSessionTimeout, num / 2.5)
? Or perhaps divided by 5 for faster checks?

I'm not sure 2,3,4 is an issue, or it makes sense to move it around,
but eventually someone will fix something in one place and leave
the other one broken.

Regards, Kenneth Skovhede, GEOGRAF A/S

Christine Bao skrev:
> Hi all,
>      I've attached a patch http://trac.osgeo.org/mapguide/attachment/ticket/1026/AjaxViewerPingServer.patch. Please review. Thank you.
>      The comments for this patch:
>                 This submission makes Ajax viewer pinging server to keep alive.
> Once Ajax viewer loaded, it will get server time out time n seconds, and ping server at a time interval n/5 seconds. If the pinging fails after 6 times, it will stop.
> Thanks & regards,
> Christine
> _______________________________________________
> mapguide-internals mailing list
> mapguide-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org

More information about the mapguide-internals mailing list