mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00: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> |
||
|---|---|---|
| .. | ||
| data | ||
| open_webui | ||
| .dockerignore | ||
| .gitignore | ||
| dev.sh | ||
| requirements.txt | ||
| start.sh | ||
| start_windows.bat | ||