mirror of
https://github.com/D-Modem/app.git
synced 2026-11-28 17:38:05 -08:00
After a damaged subpacket our ZRPOS reaches sz at once, but what it streamed before it still comes; broken headers in that data counted as errors in a row, each with a ZRPOS of its own (each a restart, with leftovers of its own), until ten of them gave up on the line. For a second after a ZRPOS a broken header is let go by; 8 KB without a header is one missing, asked for again; a stale ZEOF is asked for again only after the second. A ZDATA not where we are still always gets one (sz waits for our ACKs now and then: ignoring it, both sides waited). Found by the interop tests once they stopped tracing every byte (the trace had slowed the line). The cancel test reads the line slowly, so sz is mid-file when cancelled, not done with all 2 MB queued here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs