Files
open-webui-ai4me/backend/open_webui/utils
Classic298andClaude 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
..
2026-03-24 06:07:20 -05:00
2026-03-17 17:58:01 -05:00
2026-04-01 05:54:58 -05:00
2026-03-17 17:58:01 -05:00
2026-03-17 17:58:01 -05:00
2026-03-17 17:58:01 -05:00
2026-03-17 17:58:01 -05:00
2026-04-10 10:15:55 -07:00
2026-04-01 04:36:02 -05:00
2026-03-17 17:58:01 -05:00
2026-03-17 17:58:01 -05:00
2026-03-17 17:58:01 -05:00
2026-03-23 19:46:24 -05:00
2026-03-24 16:24:46 -05:00
2026-03-17 17:58:01 -05:00
2026-03-17 17:58:01 -05:00
2026-04-10 10:15:55 -07:00
2026-04-08 13:34:23 -07:00
2026-03-26 18:24:17 -05:00
2026-03-24 04:49:48 -05:00
2026-03-17 17:58:01 -05:00
2026-03-24 04:49:48 -05:00
2026-03-17 17:58:01 -05:00
2026-03-24 04:49:48 -05:00
2026-03-17 17:58:01 -05:00
2026-03-17 17:58:01 -05:00
2026-03-29 21:01:10 -05:00
2026-04-02 08:11:06 -05:00
2026-03-24 04:49:48 -05:00