MAFA version: 3.2.3
Android version: 16
MPD version: 0.24.4-1 on Debian 13 stable
Hello,
I have a music library where one Genre totals 13.000+ tracks.
For HTTP streaming, this poses no problem to MAFA when running locally,
however, when running remotely over mobile network and tunnel, after 10 seconds spent in this Genre, MAFA fails and disconnects from the server, with error :
Command timeout in command : find ("genre == \"myGenre\")"
-> Visibly, what happens is the “find” mpd command is taking more than 10 seconds to return its full contents, and this is a problem to MAFA which trigger the error.
For information, I manually tested
mpc find ("genre == \"myGenre\")"
in various contexts, and I confirm that returning the full data (1.2MB) is nearly instant locally, while it takes more than 10 seconds remotely over mobile network.
-> What to do ? You know better than me of course, but I’ve just had a look at the mpd protocol spec, and, “good news”, it supports sliced find.
So I guess that in order to improve MAFA resilience by making it insensitive to the network bandwidth, it would be beneficial to rearrange the “find” code around :
1- retrieval of total tracks count :
count "(genre == \"myGenre\")"
2- then, sliced retrieval of tracks list :
find "(genre == \"myGenre\")" window 0:500
find "(genre == \"myGenre\")" window 501:1000
...
find "(genre == \"myGenre\")" window 13000:13111
This, combined with the same 10 sec timeout, would allow to both
. fail if the network is really not capable enough
. and succeed otherwise
-> So what do you think ?
That being said, I’m very new to the mpd ecosystem (coming from windows + foobar2000), and I already love it, this includes MAFA, great piece of software, congrats.
By the way, did you consider making MAFA open-source, on github ? This would “make sense”, for a not for profit project, within an otherwise open-source ecosystem. And this would be more straightforward for bug reports ![]()
cheers