
195
FLASH
MEDIA
SERVER
4.5
CONFIGURATION
AND
ADMINISTRATION
XML configuration files reference
Last updated 11/28/2012
AutoCloseIdleClients
Container element. Determines whether or not to automatically close idle clients.
Set the
enable
attribute to
true
to close idle clients. If the
enable
attribute is omitted or set to
false
, the feature is
disabled. The default value is
false
.
A client is active when it is sending or receiving data. Use
AutoCloseIdleClients
to specify how often the server
should check for idle clients. When a client has been idle longer than the maximum idle time (60 seconds by default),
the server sends a status message to the
NetConnection
object (the client). The server closes the client connection to
the server and writes a message to the access log. The server also writes a message such as “Client x has been idle for y
seconds” in the core and event logs.
To configure the closing of idle connections, you must enable the feature in the Server.xml file. Once you enable the
feature in the Server.xml file, you can disable the feature for individual virtual hosts in the Vhost.xml files or for
individual applications in Application.xml. The values defined in the Server.xml configuration file apply to all clients
connected to the server, unless the values are defined in the Vhost.xml file. The Vhost.xml values override the
Server.xml values. (Subsequently, the values defined in the Vhost.xml configuration file apply to all clients connected
to the virtual host, unless values are defined in the Application.xml file. The Application.xml values override the
Vhost.xml values.)
Example
<AutoCloseIdleClients enable="false">
<CheckInterval>60</CheckInterval>
<MaxIdleTime>600</MaxIdleTime>
</AutoCloseIdleClients>
Contained elements
CheckInterval
,
MaxIdleTime
Cache
Container element. Contains elements that configure the cache setting for SWF verification.
See also
TTL
,
UpdateInterval (Cache)
CheckInterval
Specifies the interval, in seconds, at which the server checks for active client connections. The minimum and default
value is 60 seconds.
A client is disconnected the first time the server checks for idle connections if the client has exceeded the
MaxIdleTime
value. A shorter interval results in more reliable disconnection times, but can also result in decreased server
performance.
Example
<CheckInterval>60</CheckInterval>
See also
Checkpoints