Bug 9899 - Send 'dsco' for an unrecognized player type
: Send 'dsco' for an unrecognized player type
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Streaming From SlimServer
: unspecified
: PC Windows XP
: -- normal (vote)
: 7.x
Assigned To: Felix Mueller
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-04 04:43 UTC by Richard Titmuss
Modified: 2009-09-08 09:20 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Titmuss 2008-11-04 04:43:03 UTC
SC should send 'dsco' before the connection is closed in SlimProto.pm when a newer (unsupported) player tries to connect (around line 985). This tells the player to disconnect and stop trying to reconnect.

Currently this message is unused, so should be tested on the ip3k firmware (I have just implemented and tested on squeezeplay).
Comment 1 Felix Mueller 2008-11-07 02:22:32 UTC
I checked ip3k fw and it seems to do the correct thing when receiving a 'dsco' event. Same happens as if the user presses and holds 'back' to disconnect.

Sending the 'dsco' event from SC using $client->sendFrame('dsco'); does not work though because $client is not defined at that stage. We only have a handle to the socket.

I found it works by doing this:

$frame = pack('n', 4) . 'dsco';
Slim::Networking::Select::writeNoBlock( $s, \$frame);

Is that the correct thing to do or is there a better way?
Comment 2 Richard Titmuss 2008-11-07 02:27:52 UTC
It looks fine to me, I'd like Andy and Dean to comment.
Comment 3 Andy Grundman 2008-11-07 05:48:07 UTC
Sure, that should work fine.
Comment 4 Blackketter Dean 2008-11-07 18:57:36 UTC
Code looks good by me.

In this case the user experience would be that it bounces back after they hit the right arrow to connect.    Do we want to display some kind of message?
Comment 5 Felix Mueller 2008-11-10 23:06:41 UTC
If we want a message, would that be a single one, predefined on the player or a set of predefined messages selected from SC or a free text message sent from SC?
Comment 6 Felix Mueller 2008-11-17 08:18:15 UTC
Done in SC 7.3 r23944. We can still add a message later if needed.
Comment 7 James Richardson 2008-12-15 12:09:14 UTC
This bug has been fixed in the 7.3.0 release version of SqueezeCenter!

Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already.  

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Comment 8 Chris Owens 2009-07-31 10:31:32 UTC
Reduce number of active targets for SC