[mapguide-commits] r6681 -
trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI.Http
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue May 22 11:50:41 EDT 2012
Author: jng
Date: 2012-05-22 08:50:40 -0700 (Tue, 22 May 2012)
New Revision: 6681
Modified:
trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI.Http/HttpServerConnection.cs
Log:
#2009: Only re-create MapGuide session on caught exceptions relating to session expiry.
Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI.Http/HttpServerConnection.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI.Http/HttpServerConnection.cs 2012-05-22 14:56:41 UTC (rev 6680)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI.Http/HttpServerConnection.cs 2012-05-22 15:50:40 UTC (rev 6681)
@@ -1262,7 +1262,9 @@
if (typeof(WebException).IsAssignableFrom(ex.GetType()))
LogFailedRequest((WebException)ex);
- var sessionRecreated = this.RestartSession(false);
+ var sessionRecreated = false;
+ if (this.IsSessionExpiredException(ex))
+ sessionRecreated = this.RestartSession(false);
if (!this.m_autoRestartSession || !this.IsSessionExpiredException(ex) || !sessionRecreated)
{
Exception ex2 = Utility.ThrowAsWebException(ex);
More information about the mapguide-commits
mailing list