Commit 83e9662
Add support for multiple readers per file
Enables efficient random access patterns like reading ZIP files where
reads happen both at the end (central directory) and at various file
locations throughout the archive.
Changes:
- Add httpReader struct to track individual HTTP connections
- Support up to MaxReadersPerFile (default 3) concurrent readers per file
- Select best reader based on position (closest that can reach target)
- LRU eviction when reader limit is reached
- Automatically close readers that would be "passed" by another read
to avoid wasting connections
- Update idle downloader to work with multi-reader system
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 4a54e79 commit 83e9662
3 files changed
Lines changed: 234 additions & 84 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
0 commit comments