/maxidle

Specify the maximum time a shared Uniface Server (identified by its server name (UST)), is allowed to be idle (not handling any requests).

/maxidle=Duration{TimeUnit}

Parameters

  • Duration—maximum length of time, expressed in seconds (the default unit), or TimeUnit that the Uniface Server can be idle. If omitted, the default value is -1, meaning an unlimited time period.

    Note:  The actual times can vary by a number of seconds from those specified, because the timeout is checked with a 15 second interval.

  • TimeUnit—optional unit of time; one of:
    • s—seconds (the default, if TimeUnit is omitted)
    • m—minutes
    • h—hours
    • d—days
    • w—weeks

    Note: You cannot combine time units, such as /maxidle=4w2d.

Use

Use the /maxidle qualifier on UST definitions in the [SERVERS] section of the Uniface Router’s assignment file urouter.asn

Description

The server will be stopped only if the following conditions, corresponding to the server’s role, are true:

  • No open files
  • No open database transactions
  • No open component instances

$NET_TIMEOUT is not dependent of these conditions; it times out and closes the connection.

For example:

;urouter.asn
SERVERS]
DEFAULT = userver.exe /maxidle=2h /dir=..\home\guest

Related Topics