open-webui/backend/open_webui
Classic298 c0ac10d5db
fix: honor REDIS_SOCKET_CONNECT_TIMEOUT on non-sentinel clients (#23572)
* fix(redis): honor REDIS_SOCKET_CONNECT_TIMEOUT on non-sentinel clients

Previously only the sentinel path passed REDIS_SOCKET_CONNECT_TIMEOUT
through to the Redis client. Plain redis:// and cluster URLs fell back
to redis-py's default (no explicit connect timeout), so a hung Redis
or a black-holed network path could stall the whole worker until the
kernel gave up. Forwarding the same env var to from_url()/RedisCluster
keeps the behavior consistent across all deployment topologies.

* fix(redis): gate socket_connect_timeout on is-not-None, not truthiness

Addresses review feedback: the truthiness check on REDIS_SOCKET_CONNECT_TIMEOUT
silently dropped an explicit 0 value and was inconsistent with the sentinel
construction path, which forwards the value directly. Switch to `is not None`
so any user-configured value (including 0) is passed through to from_url()
and RedisCluster.from_url().

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-11 15:32:05 -06:00
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
internal refac 2026-03-17 17:58:01 -05:00
migrations refac 2026-04-01 18:26:46 -05:00
models refac 2026-04-02 22:34:51 -05:00
retrieval refac 2026-03-26 19:01:33 -05:00
routers auths: match JWT expiry on /auths/add with other sign-in paths (#23576) 2026-04-11 15:31:34 -06:00
socket refac 2026-04-01 07:42:11 -05:00
static refac 2026-03-23 23:39:52 -05:00
storage refac 2026-03-17 17:58:01 -05:00
test refac 2026-03-17 17:58:01 -05:00
tools fix: use admin-configured WEB_SEARCH_RESULT_COUNT as default (#23488) 2026-04-08 13:13:44 -07:00
utils fix: honor REDIS_SOCKET_CONNECT_TIMEOUT on non-sentinel clients (#23572) 2026-04-11 15:32:05 -06:00
__init__.py refac (#22987) 2026-03-24 15:41:26 -05:00
alembic.ini fix: Alembic CLI commands from failing 2025-08-15 04:17:47 -04:00
config.py feat: mistral tts 2026-04-02 19:31:15 -05:00
constants.py refac 2026-03-25 17:29:57 -05:00
env.py perf: skip torch import on non-macOS (#23438) 2026-04-08 13:21:55 -07:00
functions.py refac 2026-04-08 13:34:23 -07:00
main.py feat: mistral tts 2026-04-02 19:31:15 -05:00
tasks.py refac 2026-03-17 17:58:01 -05:00