mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45: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 | ||
| internal | ||
| migrations | ||
| models | ||
| retrieval | ||
| routers | ||
| socket | ||
| static | ||
| storage | ||
| test | ||
| utils | ||
| __init__.py | ||
| alembic.ini | ||
| config.py | ||
| constants.py | ||
| env.py | ||
| functions.py | ||
| main.py | ||
| tasks.py | ||