WSGIApplication.configure_server shouldn't be called multiple times

Bug #524046 reported by Anthony Lenton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lazr.restful
Triaged
Low
Unassigned

Bug Description

When using lazr.restful from modwsgi you need to be careful to not call WSGIApplication.configure_server on every request, as it will lead to heavy memory consumption. However you do need to call this method at least once to configure the api.

So, you have to detect when you've already called this method, to be able to call it only once per thread. You can just stick a flag anywhere to achieve this, but it would be nice if WSGIApplication itself would realize when it has already been configured and skip the duplicate setup.

Changed in lazr.restful:
status: New → Triaged
importance: Undecided → Medium
Changed in lazr.restful:
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.