paul- wrote: 
> So I signed up for a tidal account......got a month free to play.   Here
> in the US, tidal is using AWS Cloudfront.
> 
> I started testing with no transcoding in the LMS server.  pCP players
> handle AAC natively.
> 
> When a track is played from tidal, it sends to complete track as fast as
> it can.  All of the track data is sitting in the socket receive buffer
> and when the track is complete from Tidal, the socket goes to a
> "CLOSE_WAIT" status.  Once LMS pulls all of the data from the socket, It
> sends the acknowledgement and transitions to "LAST_ACK".  I've seen
> tidal take some time to respond to this ack.  But if the socket is
> sitting in "CLOSE_WAIT" the problem likely resides in LMS.
> 
> Now I set my squeezelite player to only accept flac....so the LMS server
> is now transcoding.......that is where things go awry.  Tidal plays the
> track, and when done sending data, it goes to CLOSE_WAIT, however at the
> end of the track, it never sends the close acknowledgement.....and is
> sitting in CLOSE_WAIT 
> 
> I had to make a custom rule such to force LMS to transcode Pandora mp3
> to flac........and the problem is there too.
> 
> 
> So.....  This problem is not specific to pCP nor tidal, this seems to
> affect any http(s) stream where LMS has to transcode the stream.

I’m not in front of my computer now but if tidal uses http 1.1 and does
not specify a “connection” header, then this is keep-alive by default
and LMS now respects that even when content-length has been received. I
have to recheck but with 1.0, LMS explicitly closes the Perl object when
content-length has been reached. That might be the reason for the issue,
which is the object is still referenced somewhere in Perl code and so
it’s not deleted and there is no proper shutdown. I will have a look.



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
------------------------------------------------------------------------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to