Thomas Goirand bae5561d4d Clean-up memcache connection sockets
The ConnectionPool currently opens sockets, but never closes them. As a
result, any client using oslo.cache memcache pool leaves sockets in a
CLOSE_WAIT state, with the source port not being re-usable.

In our production system, were we have A LOT of activity, this creates
a storm of non-reusable ports: all source ports are in use, making the
node unuseable for other things.

This patch adds a __del__ destructor closing inactive connections,
fixing the issue.

Closes-Bug: #2043121
Change-Id: I09d632346c76d1aff7c534f0d040162d1985f548
2023-11-13 15:46:59 +01:00
2022-04-19 15:07:53 +08:00
2020-05-14 14:45:12 +02:00
2019-04-19 19:29:50 +00:00
2020-05-14 14:45:12 +02:00
2017-07-11 21:51:41 +08:00
2020-02-10 18:34:34 +01:00
2023-05-17 16:03:23 +02:00
2023-02-17 13:14:58 +00:00

Team and repository tags

image

oslo.cache

Latest Version

Downloads

oslo.cache aims to provide a generic caching mechanism for OpenStack projects by wrapping the dogpile.cache library. The dogpile.cache library provides support memoization, key value storage and interfaces to common caching backends such as Memcached.

Description
An oslo.config enabled dogpile.cache.
Readme 5.5 MiB
Languages
Python 99.7%
Shell 0.3%