Skip to content

connection: a download's timeout is time without data, not the whole download - #104

Merged
lucas-romanenko merged 3 commits into
mainfrom
transfer/downloads-no-progress
Nov 24, 2026
Merged

lucas-romanenko merged 3 commits into
mainfrom
transfer/downloads-no-progress

Conversation

@lucas-romanenko

@lucas-romanenko lucas-romanenko commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #103. Merge the stack below first.

What. ATEMConnection.download_still and download_macro with timeout alone now give up after that many seconds with nothing arriving; waiting for the lock counts as nothing. The profile save's media capture (timeout_per_slot) gets the same. With stall_timeout as well, that is the no-data limit and timeout the cap, as before (WebATEM's media pool passes both).

Why. timeout was the whole download's: 30 s for a still, 10 s for a macro, 30 s a slot for a profile save's images. A 1080p still over 1 Mbit/s takes about 120 s and a slow site's about 45 s, so they never finished however well they were going. Every timeout should be no-progress, as the uploads' already are.

Before / after (network matrix pooled_download: a noisy 1080p still through ATEM(ip) with the defaults, frame compared after):

1.14.8 this
1 Mbit/s fails at 30 s 121 s, identical
slow site (3 Mbit/s, 60 ms, 1 % loss) fails at 30 s 49 s, identical
LAN 1.9 s 1.6 s

Also here: the matrix profile zerotier (WebATEM #63's link) and the pooled_download path.

Tests. Three new tests in test_download_stall.py, all failing on 1.14.8: a download that keeps arriving outlives timeout; one where nothing arrives gives up after timeout, as a stall; and a macro download is no-progress too. The existing cap and stall tests pass unchanged. Full suite passes.

SURFACE §5.4 item 70.

🤖 Generated with Claude Code

lucas-romanenko and others added 3 commits November 24, 2026 13:22
…download

download_still (30 s), download_macro (10 s) and the profile save's media
capture (30 s a slot) took timeout for the whole download, however it was
going: a 1080p still over 1 Mbit/s (130 s) or a slow site (45 s) never
made it. timeout alone is now seconds with nothing arriving, as the
uploads' are; given stall_timeout too, that is the no-data limit and
timeout the cap, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#100 took items 61 to 65. The macro cleanup is now 66, the congestion
window gets its item, 67 (it had none), and commands, hello and downloads
move to 68, 69 and 70; the Fixed-in commits are the rebased ones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lucas-romanenko
lucas-romanenko force-pushed the transfer/downloads-no-progress branch from d0d4ebe to 0b617c2 Compare November 24, 2026 18:25
@lucas-romanenko
lucas-romanenko changed the base branch from transport/hello-retry to main November 24, 2026 18:45
@lucas-romanenko
lucas-romanenko merged commit dab4452 into main Nov 24, 2026
18 checks passed
This was referenced Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant