title: Available event for connection timeout for streams publishing over RTSP?
body: <p>I use Wowza GoCoder to publish video to a custom Wowza live application. In my application I attach an <code>IRTSPActionNotify</code> event listener within the <code>onRTPSessionCreate</code> callback. In the <code>onRecord</code> callback of my <code>IRTSPActionNotify</code> I perform various tasks - start recording the live stream, among other things. In my <code>onTeardown</code> callback I then stop the recording and do some additional processing of the recorded video, like moving the video file to a different storage location.</p>
  
  <p>What I just noticed was that if the encoder timeout, due to a lost connection, power failure or some other sudden event, I wont receive an <code>onTeardown</code> event - not even when the RTSP session timeout. This is a big issue for me, since I need to do this additional processing before I make the published stream available for on demand view through another application.</p>
  
  <p>I've been browsing through <a href="http://www.wowza.com/resources/serverapi/" rel="nofollow">the documentation</a> looking for an event or a utility-class that could help me out, but so far to no avail.</p>
  
  <p><strong>Is there some reliable event, or other reliable way to know that a connection has timed out, so that I can trigger this processing also for streams that doesn't fire a teardown-event?</strong></p>
  
  <p><em>I first discovered this issue when I lost connection on my mobile device while encoding video using the Wowza GoCoder app for iOS, but I guess the issue would be the same for any encoder.</em></p>