mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #1178] [MERGED] Discovery retry #1267
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#1267
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/1178
Author: @JasonLG1979
Created: 6/16/2023
Status: ✅ Merged
Merged: 6/30/2023
Merged by: @roderickvd
Base:
dev← Head:discovery-retry📝 Commits (3)
aaed7d3Discovery retry483e19bMerge branch 'librespot-org:dev' into discovery-retryb1de707Address review comment📊 Changes
4 files changed (+44 additions, -15 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
Cargo.lock(+1 -0)📝
Cargo.toml(+1 -0)📝
src/main.rs(+41 -15)📄 Description
When started at boot as a service discovery may fail due to it trying to bind to interfaces before the network is actually up. This could be prevented in systemd by starting the service after network-online.target but it requires that a wait-online.service is also enabled which is not always the case since a wait-online.service can potentially hang the boot process until it times out in certain situations. This allows for discovery to retry every 10 secs in the 1st 60 secs of uptime before giving up thus papering over the issue and not holding up the boot process.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.