/maxreq

Specify the maximum number of requests a shared Uniface server can execute.

/maxreq=MaxRequests

Description

Use the /maxreq switch in the [SERVERS] section of the Uniface Router assignment file urouter.asn to specify the maximum number of requests that a shared server, identified by its server name (UST), is allowed to execute. The /maxreq switch has meaning only for a shared server.

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

If omitted, the default value is -1, meaning an unlimited number. If you specify /maxreq=0, the server will never be started and an error will be sent to the client. This can be used to disable certain servers for maintenance.

Note that in urouter.asn the /maxreq should be set to 1 in a Uniface IDE. If this is not done, you will always see the old HTS file.

Related Topics