Skip to content

How should a client pick its server/time reply timeout? #356

In review

Description

@maximmaxim345

A client waits for each server/time reply before sending the next client/time, but a reply can get lost, for example when a server discards requests during a re-handshake. I'm letting clients move on after a timeout they choose, but I'm not sure what that timeout should be, since bursts also have to start no more than 10 seconds apart.

Current implementations:

  • sendspin-cpp: next burst 10 s after the previous one ends, 10 s reply timeout. One lost reply pushes the next burst start to about 20 s.
  • sendspin-dotnet: same as sendspin-cpp once synced, 500 ms after the previous burst ends while converging.
  • sendspin-js: bursts start every 9 s, 2 s reply timeout that drops the rest of the burst. The next burst still starts on time, but the dropped one feeds the filter nothing.

Should the 10 seconds count from the end of the previous burst instead?

  • For: a client with a long timeout no longer breaks the rule after a lost reply. That isn't a real problem today though, since a server can't close the connection over a client's burst timing.
  • Against: bursts get less frequent exactly when the network is worse, since that's when the long timeouts happen.

Related:

Activity

  1. kahrendt commented on Nov 11, 2026

    @kahrendt
    Contributor

    How would 10 seconds from the end of the previous burst work? Are you saying a client should send bursts every 10 seconds regardless if they a reply in the previous burst timed out? I'm fine with that actually, with one additional clarification. If a burst has a timed out reply, the data from that burst should just be dropped and the filter shouldn't update for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions