-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
julesFor Jules AI to work onFor Jules AI to work on
Description
Summary
Configurable timeouts for different stages of requests.
Use Case
Some servers are slow, some hang forever. Need fine-grained timeout control.
Timeout Types
| Timeout | Description |
|---|---|
| connect | TCP connection establishment |
| tls | TLS handshake |
| headers | Time to receive response headers |
| body | Time to download full body |
| total | Overall request timeout |
Commands
# Total timeout
borg collect website https://slow-site.com --timeout 60s
# Specific timeouts
borg collect website https://slow-site.com \
--connect-timeout 10s \
--header-timeout 30s \
--body-timeout 120s
# Disable timeout (dangerous)
borg collect website https://example.com --timeout 0Configuration
timeouts:
connect: 10s
tls: 10s
headers: 30s
body: 300s # 5 minutes for large files
total: 600s # 10 minutes max
# Per-domain overrides
domains:
archive.org:
body: 600s # Archive.org is slow
github.com:
total: 60s # Should be fastLarge File Handling
For large downloads, use:
- Progress-based timeout (no data in X seconds)
- Rather than absolute timeout
body_idle_timeout: 30s # Timeout if no data for 30sAcceptance Criteria
- Per-stage timeout configuration
- Per-domain overrides
- Idle timeout for large downloads
- Clear timeout error messages
- Graceful cleanup on timeout
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
julesFor Jules AI to work onFor Jules AI to work on