Files
open-webui-custom/backend/open_webui
Sihyeon Jang 7042318c34 fix: prevent memory leaks in file handling and HTTP connections
- 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>
2025-09-20 06:37:10 +09:00
..
2025-08-10 22:28:31 +08:00
2025-09-17 00:49:44 -05:00
2025-09-15 11:40:31 -05:00
2025-08-28 13:25:48 +04:00
2025-08-10 00:02:58 +04:00
2025-08-21 12:44:16 +04:00
2025-07-16 15:23:18 +09:00
2025-06-03 18:07:29 +04:00
2025-09-19 00:10:48 -05:00
2025-09-17 12:18:23 -05:00