Files
seismo-relay/tests
serversdownandClaude Opus 5.5 59dff06f1c fix(sfm): the Series-3 header walk fails loudly, and listing uses the normal timeout
One lost 1F reply made the list return 1 of 3 events as a 200, and on a
download gave a false 404.  The list also ran on the 120 s download
timeout, so each lost reply stalled the walk 120 s with the unit locked.

- get_events() strict mode (headers_only, or only_key): a lost 0A reply,
  a lost 1F(browse) reply on the success path and on the partial-record
  path all re-raise their ProtocolError; a 1F that hands back a key
  already walked raises ProtocolError("event chain did not advance ...").
  Legacy calls (none of the new options) behave exactly as before --
  pinned by tests of the same three faults under get_events().
- Series3Adapter.list_events runs on the default timeout (10 s on TCP);
  download_event keeps 120 s.
- FakeProto gains optional lost-reply injection; its default is unchanged.

The repeat-key guard sits at the loop head, which is reached only for a
non-null key -- equivalent to checking each 1F's key, in one place.

Read-only; nothing new on the wire.  No codec, store or DB change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 17:39:54 -04:00
..