[mapguide-commits] r5544 - sandbox/adsk/2.3r/Web/src/HttpHandler

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Feb 11 17:39:54 EST 2011


Author: brucedechant
Date: 2011-02-11 14:39:54 -0800 (Fri, 11 Feb 2011)
New Revision: 5544

Modified:
   sandbox/adsk/2.3r/Web/src/HttpHandler/HttpWmsGetFeatureInfo.cpp
   sandbox/adsk/2.3r/Web/src/HttpHandler/HttpWmsGetMap.cpp
Log:
Fix for trac ticket 1599 - Optimize session repository cleanup for WMS requests
http://trac.osgeo.org/mapguide/ticket/1599

Notes:
- Added session repository cleanup code to WMS GetMap and WMS GetFeatureInfo requests


Modified: sandbox/adsk/2.3r/Web/src/HttpHandler/HttpWmsGetFeatureInfo.cpp
===================================================================
--- sandbox/adsk/2.3r/Web/src/HttpHandler/HttpWmsGetFeatureInfo.cpp	2011-02-09 17:49:20 UTC (rev 5543)
+++ sandbox/adsk/2.3r/Web/src/HttpHandler/HttpWmsGetFeatureInfo.cpp	2011-02-11 22:39:54 UTC (rev 5544)
@@ -217,6 +217,9 @@
 
         // The WMS Server takes ownership of the feature info
         wmsServer->SetFeatureInfo(wmsFeatureInfo);
+
+        // Destroy the session now that we are done
+        site->DestroySession(session);
     }
 }
 

Modified: sandbox/adsk/2.3r/Web/src/HttpHandler/HttpWmsGetMap.cpp
===================================================================
--- sandbox/adsk/2.3r/Web/src/HttpHandler/HttpWmsGetMap.cpp	2011-02-09 17:49:20 UTC (rev 5543)
+++ sandbox/adsk/2.3r/Web/src/HttpHandler/HttpWmsGetMap.cpp	2011-02-11 22:39:54 UTC (rev 5544)
@@ -197,7 +197,9 @@
             // Set the result
             STRING sMimeType = mapImage->GetMimeType();
             hResult->SetResultObject(mapImage, sMimeType.length() > 0 ? sMimeType : m_format);
-            
+
+            // Destroy the session now that we are done
+            site->DestroySession(session);
         }
         else
         {



More information about the mapguide-commits mailing list