Ticket #1071 (new defect)

Opened 11 years ago

Last modified 11 years ago

COWS -threads/processes etc

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


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 11 years ago by domlowe

  • Status changed from new to assigned

comment:2 Changed 11 years ago by spascoe

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

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.