TIME_WAIT then disconnect when republishing
Hi there
I am using FMIS 3.5.3 (Linux) to fork an RTMP stream from FMS to two different CDNs. My FMS application does roughly the following:
1) Client.prototype.FCPublish() creates two NetConnections, one for each CDN
2) Each NetConnection's onStatus() creates a new NetStream object if info.code == 'NetConnection.Connection.Success'
3) The stream that's supplied to FCPublish() is attached to each NetStream
4) .publish(stream.name, "live") is run on each NetStream
The stream coming out of the CDNs works fine for about 3-4 minutes, and then stalls. When this happens I see no NetConnection, NetStream or Stream status changes (their onStatus()s don't get fired), and when I check netstat, I see the connections to the CDNs are no longer there.
I did a bit more investigating, and found that the connections are in ESTABLISHED while working, then just before the stream stalls the connections go into TIME_WAIT and then disappear.
Can anyone shed some light on what's happening here?
