Commit bb104d0
fix(tunnel): 256KB upload cap, 10ms gap timeout, 8KB extend threshold
Reduces upload chunk size to prevent large video uploads from starving
heartbeat polls in shared batches. Adaptive accumulation:
- 50ms initial window, 10ms per-read gap timeout
- >= 8KB triggers extended 1s window (capped at 256KB)
- Smaller chunks clear batches faster, heartbeats get through
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4d5790f commit bb104d0
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1512 | 1512 | | |
1513 | 1513 | | |
1514 | 1514 | | |
1515 | | - | |
| 1515 | + | |
1516 | 1516 | | |
1517 | | - | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
1518 | 1521 | | |
1519 | 1522 | | |
1520 | 1523 | | |
1521 | 1524 | | |
1522 | 1525 | | |
1523 | 1526 | | |
1524 | 1527 | | |
1525 | | - | |
| 1528 | + | |
1526 | 1529 | | |
1527 | 1530 | | |
1528 | 1531 | | |
| |||
0 commit comments