Skip to content

Add --quic-idle-timeout to notice a lost relay sooner - #57

Merged
mondain merged 3 commits into
openmoq:mainfrom
gwendalsimon:feat/quic-idle-timeout
Nov 11, 2026
Merged

mondain merged 3 commits into
openmoq:mainfrom
gwendalsimon:feat/quic-idle-timeout

Conversation

@gwendalsimon

@gwendalsimon gwendalsimon commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

--quic-idle-timeout <ms> and relay.quic_idle_timeout_ms set the QUIC idle timeout that moq2ts offers to the relay, through moqxr's EndpointConfig::idle_timeout_ms (v0.4.18). moq2ts then notices a vanished relay, for example after a restart, within that time. The default value 0 keeps moqxr's 30 s. Other values run from 1000 to 600000 ms, as in the moqxr CLI.

We tested the change in November 2026:

  • On separate hosts, with moqx killed and restarted, moq2ts noticed the loss after 3.0 s with 3000 ms, against 30.0 s by default.
  • On the real publish path, a relay that never answers fails within the 1000 ms timeout. Without the wiring, it takes 15 s.
  • Unit tests cover the configuration key and its bounds.

This change is Reviewable

gwendalsimon and others added 3 commits November 11, 2026 09:44
* Pass the value to moqxr's EndpointConfig::idle_timeout_ms, the QUIC
  idle timeout offered to the relay. A relay that vanished, for example
  after a restart, is then noticed within it instead of 30 s.
* Add relay.quic_idle_timeout_ms to the --config file.
* 0, the default, keeps the moqxr default.
* Needs a moqxr with EndpointConfig::idle_timeout_ms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Accept 0 or 1000 to 600000 ms: below 1 s, every connection attempt
  times out.
* Say that the idle timeout also bounds each connection attempt.
* Test the real publish path: a relay that never answers fails within
  the 1000 ms timeout, where moqxr's own handshake wait would apply
  without the setting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mondain
mondain merged commit 5e7b72e into openmoq:main Nov 11, 2026
4 checks passed
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.

2 participants