mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-26 05:15:49 +03:00
[GH-ISSUE #209] spclient requests should have a maximum request limit #137
Labels
No labels
bug
enhancement
pull-request
spotify-side
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-librespot#137
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?
Originally created by @tooxo on GitHub (Sep 14, 2025).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/209
The spclient should have a request limit, because there are some errors which can occur here, which will block the function indefinitely by always repeating the request (e.g. dns lookup issues, network outages).
github.com/devgianlu/go-librespot@8d888e4e46/spclient/spclient.go (L84-L103)@devgianlu commented on GitHub (Sep 19, 2025):
The retries should be stopped by
backoff.WithContext. If the context is canceled, it doesn't retry. This assumes that the caller isn't using a random context without a deadline, which is probably untrue.