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-06-21 03:41:55 +00:00
2015-10-13 14:48:32 +11:00
2015-06-29 18:13:32 +00:00
2015-10-08 16:28:08 -05:00