Files
open-webui-ai4me/backend/open_webui/routers
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-09-17 10:46:11 -05:00
2025-09-08 18:17:11 +04:00
2025-09-17 00:49:44 -05:00
2025-09-16 10:40:15 -05:00
2025-08-18 20:53:46 +04:00
2025-07-21 22:17:08 +03:00
2025-09-17 11:28:04 -05:00
2025-09-16 16:15:52 -05:00
2025-09-02 19:16:02 +02:00
2025-07-20 15:00:24 +04:00
2025-09-17 00:49:44 -05:00
2025-09-19 00:10:48 -05:00
2025-05-15 12:58:44 +04:00
2025-09-17 11:28:04 -05:00
2025-08-06 14:27:07 +04:00
2025-08-27 03:07:21 +04:00
2025-09-16 21:41:47 -05:00