Skip to content

CLOSE_CONNECTION=mapdraw #2815

Closed
Closed

Description

@mapserver-bot

Reporter: hobu
Date: 2008/11/23 - 21:54
Trac URL: http://trac.osgeo.org/mapserver/ticket/2815
It would be a nice feature to tell the connection pool to only keep connections alive for single mapdraws instead of forever. The utility of this would be somewhat limited, but it could be useful in some situations.

Activity

  1. mapserver-bot commented on Apr 3, 2012

    @mapserver-bot
    Author

    Author: warmerdam
    Date: 2008/11/23 - 22:06
    I foresee this being done as a CLOSE_CONNECTION=MAPDRAW or something similar. We would essentially defer closing connections, but at the end of map->Draw() we would make a pass through the connection pool closing all connections with that status.

    I do have some concerns about the impact in a true multi-threading environment (like c#).

    I'd be willing to implement such a feature, given some help to test it.

    I'd also suggest that MAPDRAW be the default and that ONCLOSE be the other option which means drop the connection when the layer is closed (as is done now).

  2. mapserver-bot commented on Apr 3, 2012

    @mapserver-bot
    Author

    Author: hobu
    Date: 2009/03/10 - 20:23
    Some notes re: discussions at Toronto Sprint

    • Make the PROCESSING CLOSE_CONNECTION be actual mapfile directive
    • Do "the right thing" (equivalent of CLOSE_CONNECTION=DEFER in the CGI case) by default
    • Pooling rasters will work in a similar way to vectors
    • Tile index layers will be handled specially (no pooling for layers within a tile index -- raster or vector)
  3. mapserver-bot commented on Apr 3, 2012

    @mapserver-bot
    Author

    Author: warmerdam
    Date: 2009/03/10 - 21:13
    On a roughly related note, I have modified the raster layer code to implement a sort of deferred connection handling (via GDALOpenShared()) that inspects the CLOSE_CONNECTION processing key. It will defer closing by default (the planned new global behavior), but does not automatically defer closes for tile indexes to avoid handle/resource exhaustion. (4daba03 (r8772))

  4. mapserver-bot commented on Feb 23, 2016

    @mapserver-bot
    Author

    This is an automated comment

    This issue has been closed due to lack of activity. This doesn't mean the issue is invalid, it simply got no attention within the last year. Please reopen with missing/relevant information if still valid.

    Typically, issues fall in this state for one of the following reasons:

    • Hard, impossible or not enough information to reproduce
    • Missing test case
    • Lack of a champion with interest and/or funding to address the issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions