Skip to content

Device disappears after being idle for some hours #903

@Semmu

Description

@Semmu

Description
Hi,

I have recently bought a new router (TP-Link Archer AX1800) and since then spotifyd always disappears from my Spotify Connect devices list after some hours of being idle (e.g. I leave my home).
This is always happening, though the timeout does seem to vary a bit.

Because it happens since the introduction of my new router, I suspect some networking issue, like some TCP connection being closed despite still in use, even if barely.

Unfortunately spotifyd does not realize its connection has been closed and does not restart automatically (which would solve the problem), nothing interesting is printed in the logs, so I always have to restart the service manually, which is pretty annoying.

Could you please implement some heartbeat check or more pedantic network connection handling, so maybe it can detect connection issues and reconnect if needed?

Thanks in advance!

To Reproduce
0. (buy and use TP-Link Archer AX1800)

  1. Start spotifyd, play some music
  2. Stop playing music, but keep spotifyd running
  3. Leave spotifyd alone for some hours
  4. Notice that spotifyd is not in the Spotify Connect devices list anymore 😞

Expected behavior
4. Notice that spotifyd is still in the Spotify Connect devices list 😊

Logs

Click to show logs

Nothing special in the logs, but I did not run it with --verbose. Made the change now, and will include the logs here when I encounter the issue next time.

Compilation flags

  • dbus_mpris
  • dbus_keyring
  • alsa_backend
  • portaudio_backend
  • pulseaudio_backend
  • rodio_backend

(Downloaded the binary release from here.)

Versions (please complete the following information):

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA functionality or parts of a program that do not work as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions