[mapguide-commits] r5545 - trunk/MgDev/Web/src/HttpHandler
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Fri Feb 11 17:50:07 EST 2011
Author: brucedechant
Date: 2011-02-11 14:50:07 -0800 (Fri, 11 Feb 2011)
New Revision: 5545
Modified:
trunk/MgDev/Web/src/HttpHandler/HttpWmsGetFeatureInfo.cpp
trunk/MgDev/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: trunk/MgDev/Web/src/HttpHandler/HttpWmsGetFeatureInfo.cpp
===================================================================
--- trunk/MgDev/Web/src/HttpHandler/HttpWmsGetFeatureInfo.cpp 2011-02-11 22:39:54 UTC (rev 5544)
+++ trunk/MgDev/Web/src/HttpHandler/HttpWmsGetFeatureInfo.cpp 2011-02-11 22:50:07 UTC (rev 5545)
@@ -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: trunk/MgDev/Web/src/HttpHandler/HttpWmsGetMap.cpp
===================================================================
--- trunk/MgDev/Web/src/HttpHandler/HttpWmsGetMap.cpp 2011-02-11 22:39:54 UTC (rev 5544)
+++ trunk/MgDev/Web/src/HttpHandler/HttpWmsGetMap.cpp 2011-02-11 22:50:07 UTC (rev 5545)
@@ -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