[mapserver-commits] r11069 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Fri Mar 4 08:06:57 EST 2011


Author: tamas
Date: 2011-03-04 05:06:57 -0800 (Fri, 04 Mar 2011)
New Revision: 11069

Modified:
   trunk/mapserver/mappool.c
Log:
Ensure that always create a new connection when 'CLOSE_CONNECTION=ALWAYS' is set.

Modified: trunk/mapserver/mappool.c
===================================================================
--- trunk/mapserver/mappool.c	2011-03-04 12:29:49 UTC (rev 11068)
+++ trunk/mapserver/mappool.c	2011-03-04 13:06:57 UTC (rev 11069)
@@ -342,10 +342,16 @@
 
 {
     int  i;
+    const char* close_connection;
 
     if( layer->connection == NULL )
         return NULL;
 
+    /* check if we must always create a new connection */
+    close_connection = msLayerGetProcessingKey( layer, "CLOSE_CONNECTION" );
+    if( strcasecmp(close_connection,"ALWAYS") == 0 )
+        return NULL;
+
     msAcquireLock( TLOCK_POOL );
     for( i = 0; i < connectionCount; i++ )
     {



More information about the mapserver-commits mailing list