On 9/21/12 4:06 PM, Max Kellermann wrote: > On 2012/09/21 21:46, Eric Wollesen <er...@xmtp.net> wrote: > >> Is there any good reason why the server does not respond with a OK >> message, or some sort of ACK if that is more appropriate..? > > Yes. > > My psychic powers tell me that you asked the wrong question, you did > not want a "yes" or "no" response. I'll just pretend you asked the > right question.
Your psychic powers are better tuned than my abilities to phrase a proper question. :D > Imagine: what would happen if MPD would really respond to "noidle"? > > Example: you send "idle", but then decide you want to leave the mode > and send another command. Right in the middle of that, an "idle" > response from MPD is approaching. > > Now what happens? Your client receives the "idle" response, but > thinks MPD has already received "noidle" and this is the response to > "noidle". It sends the new command, but now receives the response to > "noidle". Now your client and MPD are out of sync. > > Therefore, consistency can only be achieved by never ever responding > to "noidle" - because "noidle" is not a command, it's just a magic > keyword that makes MPD leave "idle" but will be ignored as a command. Thank you, that clears it up for me, and (of course) makes total sense. e. -- er...@xmtp.net ------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team