Ticket #1071 (new defect)

Opened 10 years ago

Last modified 10 years ago

COWS -threads/processes etc

Reported by: domlowe Owned by: spascoe
Priority: required Milestone:
Component: COWS Version:
Keywords: Cc:

Description

Multiple threads in cows mean that layer slab caching is not working as planned - need to get to the bottom of the controller/paster/thread/process relationship to work out how best to do this type of caching

Change History

comment:1 Changed 10 years ago by domlowe

  • Status changed from new to assigned

comment:2 Changed 10 years ago by spascoe

  • Owner changed from domlowe to spascoe
  • Status changed from assigned to new

Layer objects are created by the LayerMapper? which is instantiated by the WMS Controller (in the before method). In Pylons controllers are instantiated in child threads for each request.

To fix this we should store the LayerMapper? in the Pylons globals dictionary (g). The controller's before method should check whether the LayerMapper? has been created before creating a new one.

We need to sort out the details of this. E.g. Make sure LayerMapper? is thread safe.

Note: See TracTickets for help on using tickets.