LiveStreamcast: Failover bug?
I'm using the LiveStreamcast server-side scripts provided by Adobe to test out the failover capanilities of FMS. My setup is as follows:
---> Origin 1 ---
/ \
Encoder Edge ----> Client
\ /
---> Origin 2 ---
Failover works fine if I disconnect Origin 1 from the network for a short time: the Edge switches to the feed from Origin 2 and continues streaming to the Client. I reconnect Origin 1 shortly after the switch and the Edge server finds and re-adds the Origin 1 feed as a backup. I can then disconnect Origin 2 and it will switch to Origin 1, ad infinitum.
However! If I leave Origin 1 disconnected from the network after the successful failover, it recieves a NetConnection.Closed event for Origin 1 and then the Origin 2 feed freezes.
I've added debug statements all over the code to make sure that the NetConnection.Closed event isn't somehow causing the LiveStreamcast to remove the Origin 2 feed, but as far as I can tell the Origin 2 feed is still set as the current feed and is never stopped, unsubscribed or otherwise affected. Furthermore, I can stream directly from Origin 2 with no problem. It's as if the NetConnection.Closed event for one feed causes FMS to completely stop all streaming.
Has anyone encountered this problem before (either with LiveStreamcast or otherwise)? It seems like a basic function of failover but I've found no mentions this problem online. Is there a known bug in the LiveStreamcast scripts? Or is there some logic for handling NetConnection.Closed events that I'm missing here? I couldn't find anything in the Server-side Actionscript API about such a case.
Any help would be much appreciated.
