Skip to content

Commit 9803552

Browse files
Add retryable stream handling, more retry cases
- Implemented logic to track and rewind file streams between retries. - Enhanced retry mechanism to respect `Retry-After` headers with both seconds and HTTP-date formats. - Improved handling of non-seekable streams, logging errors and aborting retries gracefully. - Updated tests to cover stream behavior during retries, including seekable and non-seekable streams. - Refactored retry logic to include customizable pre-attempt hooks and delay adjustments based on responses. - Handle 408, 429, and 499 retries. Assisted-by: Codex
1 parent 1b70258 commit 9803552

3 files changed

Lines changed: 671 additions & 11 deletions

File tree

0 commit comments

Comments
 (0)