fiso64 / slsk-batchdl

A batch downloader for Soulseek
GNU General Public License v3.0
216 stars 16 forks source link

Album downloads queued indefinitely after a minute #56

Closed fiso64 closed 1 week ago

fiso64 commented 1 month ago

When downloading albums, files sometimes get stuck in the remote queued state after about a minute until they go stale and are cancelled. The remote (slskd) only reports them as being in local queued state. The following pops up in slskd after some time:

Soulseek.SoulseekClientException: Failed to upload file slskd-shares\my-unique-folder-name-67673\12. file.mp3 to user username: Failed to establish a direct or indirect message connection to username
 ---> Soulseek.ConnectionException: Failed to establish a direct or indirect message connection to username
   at Soulseek.Network.PeerConnectionManager.<>c__DisplayClass39_0.<<GetOrAddMessageConnectionAsync>g__GetConnection|0>d.MoveNext()

This does NOT happen if all files are queued at the start, i.e with --concurrent-downloads 999 (this will still download the files one-by-one for album downloads).

fiso64 commented 1 week ago

Hard coding the concurrent dls value to 999 works as a temporary fix, but the fact that it fails otherwise likely indicates an underlying problem.