mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #23572] [MERGED] fix: honor REDIS_SOCKET_CONNECT_TIMEOUT on non-sentinel clients #82130
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23572
Author: @Classic298
Created: 4/10/2026
Status: ✅ Merged
Merged: 4/11/2026
Merged by: @tjbck
Base:
dev← Head:claude/redis-socket-connect-timeout📝 Commits (2)
65136e2fix(redis): honor REDIS_SOCKET_CONNECT_TIMEOUT on non-sentinel clients3bb72a7fix(redis): gate socket_connect_timeout on is-not-None, not truthiness📊 Changes
1 file changed (+26 additions, -4 deletions)
View changed files
📝
backend/open_webui/utils/redis.py(+26 -4)📄 Description
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.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.