mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-01 03:17:20 -05:00
- Fix file handle memory leak in download_file_stream by properly closing and reopening files - Add requests.Session context manager for proper HTTP connection cleanup - Remove unnecessary file.seek(0) after file reopening - Add timeout to prevent hanging connections This prevents memory accumulation during large file downloads and ensures proper resource cleanup in all scenarios. Signed-off-by: Sihyeon Jang <sihyeon.jang@navercorp.com>