neutron/neutron/api
Slawek Kaplonski e610a5eb9e Don't use singleton in routes.middleware.RoutesMiddleware
It seems that using default singleton=True in the
routes.middleware.RoutesMiddleware which is leading to use thread-local
RequestConfig singleton object is not working well with eventlet
monkeypatching of threading library which we are doing in Neutron.
As a result it leaks memory in neutron-api workers every time when API
request to not existing API endpoint is made by user.

To avoid that memory leak, let's use singletone=False in that
RoutesMiddleware object, at least until problem with thread-local
singleton and eventlet monkey patching will be solved.

Closes-Bug: #1942179
Change-Id: Id3a529248d3984506f0166bdc32e334127a01b7b
2021-09-04 09:25:19 +00:00
..
rpc Use payload callback for RPC resource_cache 2021-08-31 13:39:06 +00:00
v2 Remove ``ConfDriver`` code 2021-07-26 15:00:32 +00:00
views Add a new configuration variable for api links. 2017-04-18 15:16:41 +00:00
__init__.py Added API extensions to detect sorting/pagination features 2016-08-01 22:57:15 +02:00
api_common.py Remove "six" library 2020-07-28 16:55:52 +00:00
extensions.py Don't use singleton in routes.middleware.RoutesMiddleware 2021-09-04 09:25:19 +00:00