I have lionic agent running on an OpenWRT gateway. When I started a recent Roku Casting app (https://okaapps.com/product/1519399703) I noticed that my security agent started crashing immediately after receiving the cast app SSDP packet.
See the SSDP packet details before. Comparing this to other casting agents SSDP packets the line after the User-Agent is different.
Yes, it looks like Roku’s SSDP implementation is slightly out of spec, sending LF line terminators instead of CRLF. However, the SSDP specification defers to RFC 2616 (HTTP/1.1) which says that clients should be tolerant of implementations that send just a single LF instead of CRLF. I don’t think we’re going to change the code soon, as 12.5 has just been deployed to most users, so I suggest filing a bug with the security agent developer about their parser crash.
Thanks for the quick response. Was there a change in the Roku SSDP implementation recently? I see there was a rollout Sept 12th, 2023. Just trying to track when this came into being (or maybe its always been this way?).
When I started a recent Roku Casting app (https://okaapps.com/product/1519399703) I noticed that my security agent started crashing immediately after receiving the cast app SSDP packet.
This doesn’t appear to me to have anything to do with Roku OS. Roku OS doesn’t generate the SSDP packet that is quoted here. Instead that appears to be something that the “Casting app” you refer to is producing itself. So I recommend that you should file a bug report to them.
That would be something sent from whatever device you’re running this “casting” software from, presumably as it wants to discover your Roku device(s) on the network.