• How to disconnect idle Flash RTMP clients

    This package includes a module for automatically disconnecting idle clients. It monitors the server side NetStream objects attached to a IClient object. If no data is flow in/out of the NetStream object for a duration greater than the idleDisconnectTimeout timeout value, the client is disconnected. The default timeout is set to 10 minutes. This module does not deal with any other data that might be flowing across the NetConnection such as shared objects or remote procedure calls. The source code has been included so that it can be modified to suite other application timeout heuristics.

    IdleDisconnect.zip


    Comments 2 Comments
    1. hockey_dave -
      Can this be extended beyond Netstream (i.e. Flash)? Most specifically Cupertino (i.e. iOS) is what I'm interested in. Or is there something about Cupertino (and the other) protocols that make this not possible?
      By the way, for Flash, this module works extremely well and I'm very happy with its performance. Nice job someone.
    1. rrlanham -
      No, because only Flash RTMP clients have this kind of connection (NetConnection/IClient) to Wowza that this deals with, where there is a NetConnection and a NetStream. Other clients have a session, roughly equivalent to the NetStream, but there is no equivalent to the NetConnection for non-RTMP clients.

      Richard