How to disconnect idle Flash RTMP clients

This package includes a module for automatically disconnecting idle clients. It monitors server-side NetStream objects attached to an IClient object. If no data flows 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 doesn't 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 suit other application timeout heuristics.


Originally Published: 10-02-2010.

If you're having problems or want to discuss this article, post in our forum.