[mapserver-dev] Disable connection pooling in msDrawQueryLayer (PROCESSING "CLOSE_CONNECTION=ALWAYS")

Daniel Morissette dmorissette at mapgears.com
Wed Mar 2 10:04:10 EST 2011


Hi Tamas,

I had a quick look at the patch, and my understanding is that 
CLOSE_CONNECTION=ALWAYS, in addition to always closing the connection 
after use, will also (and very importantly) not try to reuse a shared 
connection from the pool that might have come from another layer (i.e. 
not grab and close an existing connection from the pool). Did I get this 
right? If yes then the patch seems fine to me.

Daniel


On 11-03-02 09:45 AM, Tamas Szekeres wrote:
> Hi All,
>
> I've already mentioned that when drawing the background in
> msDrawQueryLayer it happens by using the same OGR connection which
> invalidates the result set of the query. I've prepared a fix to handle
> this by establishing a CLOSE_CONNECTION=ALWAYS processing option which
> will provide that the connection is only available within a single
> request and will be closed immediately when connpoolrelease is called.
> The related patches can be found here:
>
> http://trac.osgeo.org/mapserver/attachment/ticket/3647/mappool.c.2.patch
> http://trac.osgeo.org/mapserver/attachment/ticket/3647/mapdraw.c.patch
>
>
> Any objections to apply this in trunk?
>
> Best regards,
>
> Tamas
>
>
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev


-- 
Daniel Morissette
http://www.mapgears.com/


More information about the mapserver-dev mailing list