I've been experimenting with p2p and found that after initiating a Stratus session and receiving a peerID, I have yet to see that peerID become stale as long as the SWF has been left open. I've found that after quite a few hours (overnight and longer) of inactivity I can still connect to a SWF with that peerID. I don't have a problem with that in any sense, but I would like to know if that peerID does at some point become stale while the SWF is still open, and if so does the SWF receive a NetConnection event of some sort to know this has happened? After some time of inactivity NetStreams disconnect and I get an event for that.
your peerID is valid for as long as your NetConnection is connected to an RTMFP server. if your connection drops, you'll get a NetConnection.Connect.Closed NetStatusEvent.NET_STATUS event. Stratus has no idle timeout; i stayed connected to Stratus for over a week once.
note that Stratus servers are restarted from time-to-time, so connections may not stay up forever.