The init-proxy() function initializes the Proxy Server’s internal settings. This function is called during the initialization of the Proxy Server, but should also be specified in the obj.conf file to ensure that the values are initialized properly.
The syntax of this function is as follows:
Init fn=init-proxy timeout=seconds timeout-2=seconds
In the previous example, the following parameters have direct applicability to Proxy Server timeout settings for the init-proxy SAF:
timeout (proxy timeout)– The proxy timeout parameter tells the server how long to wait before quitting an idle connection. A high proxy timeout value commits a valuable proxy thread to a potentially down client for a long time. A low timeout value quits CGI scripts that take a long time to produce results, such as a database query gateway.
To determine the best proxy timeout for the server, consider these issues:
Will the Proxy Server be handling many database queries or CGI scripts?
Will the Proxy Server be handling a small enough number of requests that a process can be spared at any given time?
If you answered yes to either of these questions, you might decide to set a high proxy timeout value. The highest proxy timeout value recommended is 1 hour. The default value is 300 seconds (5 minutes).
You can view or modify the proxy timeout value by accessing the Configure System Preferences page under the Preferences tab in the Server Manager. This parameter is referenced as Proxy Timeout.
timeout-2 (timeout after interrupt)– The timeout after interrupt value tells the Proxy Server how much time to continue writing a cache file after a client has quit the transaction. In other words, if the Proxy Server has almost finished caching a document and the client quits the connection, the server can continue caching the document until it reaches the timeout after interrupt value.
The highest recommended timeout after interrupt value is 5 minutes. The default value is 15 seconds.