[GH-ISSUE #230] Automatically reconnect after connection loss #154

Closed
opened 2026-02-27 19:29:08 +03:00 by kerem · 1 comment
Owner

Originally created by @djmaze on GitHub (May 31, 2018).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/230

When internet connectivity is lost, librespot (running under a snapcast server) outputs:

2018-05-31 16-46-33 [Info] (Spotify) ERROR:librespot_core::session: Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" }

When connectivity returns, the librespot device just disappears from the device list in Spotify and does not return. The Spotify connection in librespot is permanently lost. I have to restart the app in order get it working again.

We could just try to periodically reconnect when the connection fails?

Originally created by @djmaze on GitHub (May 31, 2018). Original GitHub issue: https://github.com/librespot-org/librespot/issues/230 When internet connectivity is lost, librespot (running under a snapcast server) outputs: ``` 2018-05-31 16-46-33 [Info] (Spotify) ERROR:librespot_core::session: Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" } ``` When connectivity returns, the librespot device just disappears from the device list in Spotify and does not return. The Spotify connection in librespot is permanently lost. I have to restart the app in order get it working again. We could just try to periodically reconnect when the connection fails?
kerem closed this issue 2026-02-27 19:29:08 +03:00
Author
Owner

@ComlOnline commented on GitHub (Jun 4, 2018):

Hi @djmaze, This is annoying a well known bug see #134. I would follow that Issue for updates.

Many thanks

<!-- gh-comment-id:394447571 --> @ComlOnline commented on GitHub (Jun 4, 2018): Hi @djmaze, This is annoying a well known bug see #134. I would follow that Issue for updates. Many thanks
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#154
No description provided.