HomeSoftware Heritage

Add listen_addr option

Description

Add listen_addr option

Current option listen_ip only supports IP types (IPv4 and IPv6)
while memcached's -l option allows <host>:<port> or also notls:<host>:<port>
in case a nonTLS interface is required when deploying with TLS enabled.

So the following examples are valid calls of memcached:

run memcached at both port 11211 and 11212
$ memcached -p 11211 -l localhost,localhost:11212

run memcached with TLS on ipv4, but not ipv6
memcached -l "127.0.0.1,notls:[::1]:11211" \

-Z -o ssl_chain_cert=cert.pem \
-o ssl_key=key.key \
-o ssl_ca_cert=tls/client-ca-root.crt \
-o ssl_verify_mode=1

This patch adds a new param called listen_addr to replace listen_ip
where the new param is more permissive in what it can take letting
Memcached itself decide if it is valid or not.

Lastly, this patch deprecates listen_ip in favor of listen_addr.

Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>

Details

Provenance
Moisés Guimarães de Medeiros <moguimar@redhat.com>Authored on Mar 5 2021, 12:16 PM
Steffen Zieger <me@saz.sh>Committed on Mar 9 2021, 4:27 PM
olasdPushed on Dec 28 2021, 10:47 AM
Parents
rSPMEMC084e8a7e6230: fix .fixtures.yml systemd module definition
Branches
Unknown
Tags
Unknown

Event Timeline

Steffen Zieger <me@saz.sh> committed rSPMEMC0e99f8572d94: Add listen_addr option (authored by Moisés Guimarães de Medeiros <moguimar@redhat.com>).Mar 9 2021, 4:27 PM