You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(node): a serve-miss upstream pull keeps running after its downstream client leaves #2330
A decdn bundle pull (gpt-oss-20b, client peer a68ca1f47e, pool 0x2aaa…56ef) was stopped with SIGINT at 08:39:39Z on 2026-10-06. Exactly 30 s later, three nodes logged the same warning for upstream pulls they had started to serve that client:
fra1 08:40:09 WARN pull still paused on its downstream frontiers; a stalled payer or a pacing regression holds it
hash=baa10b83… reason=WindowFull served_paid=1862533120 serve_demand=0 waited_secs=30 (upstream 89d125b0c5)
lon1 08:40:09 WARN … hash=4e302437… reason=WindowFull served_paid=147259392 serve_demand=0 waited_secs=30 (upstream nbg1)
nbg1 08:40:09 WARN … hash=24823b38… reason=MinDraw served_paid=1035862016 serve_demand=0 waited_secs=30 (upstream fra1)
serve_demand=0 shows no downstream reader remains. The pull leg pauses and reports a stalled payer instead of tearing down.
Expected
When the last downstream serve stream for a pull leg ends, the leg is cancelled (or finishes only the portion it has already paid for, then stops). It does not wait on a reader that is gone.
To check
Whether these legs are torn down after the warning, and what they cost in held upstream streams and unpaid window in the meantime.
Checked in Tempo (serve_stream, peer=a68ca1f47e…, 08:35–08:50Z). Every sampled serve stream for that client (fra1, bcl, lon1, nbg1) ended at 08:40:10–13 with write chunk frame: connection lost, which is 31–34 s after the 08:39:39 SIGINT. That matches the 30 s QUIC idle timeout. The serve leg then returned, the last lease dropped, and the session cancel tore the pull down. So teardown works. The WARN fired because PULL_WAIT_WARN_AFTER (30 s) was no longer than the time a serve leg needs to notice that its payer is gone. #2343 raises the threshold to 45 s and adds a const assert that ties it to the idle timeout and the proof-wait ceiling.
Separate, unverified: the Ctrl-C'd bundle pull seems to have sent no CONNECTION_CLOSE, although bundle_pull.rs closes the endpoint. A second Ctrl-C (process::exit) would explain that. Worth a look if nodes keep holding streams for 30 s after a client stops.
Activity
thiras commentedon Oct 6, 2026
Checked in Tempo (
serve_stream,peer=a68ca1f47e…, 08:35–08:50Z). Every sampled serve stream for that client (fra1, bcl, lon1, nbg1) ended at 08:40:10–13 withwrite chunk frame: connection lost, which is 31–34 s after the 08:39:39 SIGINT. That matches the 30 s QUIC idle timeout. The serve leg then returned, the last lease dropped, and the session cancel tore the pull down. So teardown works. The WARN fired becausePULL_WAIT_WARN_AFTER(30 s) was no longer than the time a serve leg needs to notice that its payer is gone. #2343 raises the threshold to 45 s and adds a const assert that ties it to the idle timeout and the proof-wait ceiling.Separate, unverified: the Ctrl-C'd
bundle pullseems to have sent no CONNECTION_CLOSE, althoughbundle_pull.rscloses the endpoint. A second Ctrl-C (process::exit) would explain that. Worth a look if nodes keep holding streams for 30 s after a client stops.