fix: enforce connection and read timeouts on external audio downloads#36
fix: enforce connection and read timeouts on external audio downloads#36iyedmdimegh wants to merge 1 commit intoruxailab:mainfrom
Conversation
|
While going through the codebase as part of my GSoC 2026 application, The fix uses a (10, 300) timeout tuple: 10s on the connection so I also added a dedicated Timeout exception handler that raises a clear RuntimeError including the URL. On the testing side, I added test_fetch_audio_from_url_timeout to verify both that the timeout tuple is passed to requests.get and that the expected RuntimeError message is raised on timeout. Ran the full test suite: 93 passed, 4 warnings. |
No description provided.