Skip to content

Commit

Permalink
chore: ensure redis connections timeout eventually (#15668)
Browse files Browse the repository at this point in the history
In the event of a connection failure, don't hang forever.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
  • Loading branch information
miketheman committed Mar 26, 2024
1 parent 984431f commit 447aef7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/redis-tls
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ REDIS_URL="$(echo $REDIS_URL | sed "s/:[0-9][0-9]*$/:$REDIS_PORT/g" )"
# REDIS_URL.
unset REDIS_PORT

# Ensure all clients have a 5-second timeout.
# Configure the TLS settings for our Redis connection
REDIS_URL="$REDIS_URL?ssl_cert_reqs=required&ssl_ca_certs=$(python -m certifi)"
REDIS_URL="$REDIS_URL?socket_timeout=5&ssl_cert_reqs=required&ssl_ca_certs=$(python -m certifi)"

0 comments on commit 447aef7

Please sign in to comment.