Skip to content

Retry across M-Lab servers on connection failure#9

Merged
michalskalski merged 1 commit into
mainfrom
ms-retry
Mar 20, 2026
Merged

Retry across M-Lab servers on connection failure#9
michalskalski merged 1 commit into
mainfrom
ms-retry

Conversation

@michalskalski

Copy link
Copy Markdown
Owner

The client now caches all targets from the Locate API and automatically retries the next server when a connection fails.

Breaking API changes:

  • start_download/start_upload now take Option<&str> instead of &str. Pass None for auto-locate with retry, or Some(url) for a specific server.
  • start_download/start_upload return TestHandle (with server_fqdn and rx fields) instead of a bare Receiver.
  • Client requires &mut self for start_download/start_upload due to internal target caching.
  • Removed locate_test_targets() and LocateResult, use locate::nearest() directly for server discovery.

@michalskalski michalskalski linked an issue Mar 20, 2026 that may be closed by this pull request
The client now caches all targets from the Locate API and automatically
retries the next server when a connection fails.

Breaking API changes:
- start_download/start_upload now take Option<&str> instead of &str.
  Pass None for auto-locate with retry, or Some(url) for a specific server.
- start_download/start_upload return TestHandle (with server_fqdn
  and rx fields) instead of a bare Receiver.
- Client requires &mut self for start_download/start_upload due
  to internal target caching.
- Removed locate_test_targets() and LocateResult, use
  locate::nearest() directly for server discovery.
@michalskalski
michalskalski merged commit 5a905be into main Mar 20, 2026
4 checks passed
@michalskalski
michalskalski deleted the ms-retry branch March 20, 2026 02:45
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.

Server retry on connection failure

1 participant