neutron/neutron/api
Slawek Kaplonski 2f642e23e0 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
(cherry picked from commit e610a5eb9e)
2021-09-07 06:09:42 +00:00
..
rpc DHCP notification optimization 2021-04-23 10:02:14 +00:00
v2 Add base support for update_port_bulk 2019-07-05 21:07:29 +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 Fix bug: AttributeError arises while sorting with standard attributes 2019-05-29 17:58:51 +08:00
extensions.py Don't use singleton in routes.middleware.RoutesMiddleware 2021-09-07 06:09:42 +00:00