Backend server timeout

Document ID : KB000038243
Last Modified Date : 14/02/2018
Show Technical Document Details

Summary:

Occasionally, there may be a need to adjust a server timeout value for the CA Secure Proxy Server (now CA Access Gateway), in order to allow a backend request to complete if there is a requirement for a longer connection time, i.e. 2 minutes.  The default timeout value for the timeout value is 60000 ms (60 seconds) as shown below:

 

[execute][Sending request to backend = xxxxxxxxxxxxx url = xxxxxxxxxxxxxx] 
[requestConnection(): ][Get connection: HttpRoute[{}->xxxxxxxxxxxxxxxx], timeout = 60000
[releaseConnection(): ][Released connection is not reusable.] 
[execute][Read timed out] 
[execute][Retrying to send the request to backend web server.Retry count: 1] 
[execute][Tried to send the request to backend web server three times.Throwing the exception to client. ] 
[Noodle::doGet][java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method)]

 

- The timeout value bolded above is the value in question that needs to be tweaked in this certain situation

- I would like to increase timeout to 2 minutes, but do not know where this timeout configuration resides. 

 

Instructions

- Customer context: "I would like to increase timeout to 2 minutes, but do not know where this timeout configuration resides.", the value needs to show in the logs as timeout = 120000 (value in milliseconds)

 

- The value is configured in one of two places, and can be set in both files for redundancy purposes:

- server.conf

- proxyserver.sh

 

server.conf:

http_connection_timeout="120000"

 

proxyserver.sh:

SPS_TOMCAT_OPTS="-Dcatalina.base=${TOMCAT_HOME} -Dcatalina.home=${TOMCAT_HOME} -Djava.io.tmpdir=${TOMCAT_HOME}/temp -DHTTPClient.log.mask=0 -DHTTPClient.Modules=HTTPClient.RetryModule|org.tigris.noodle.NoodleCookieModule|HTTPClient.DefaultModule -Dlogger.properties=${TOMCAT_HOME}/properties/logger.properties -Dhttp_connection_timeout=120000 -Dhttp_socket_timeout=120000 -Djava.endorsed.dirs=${TOMCAT_HOME}/endorsed $STS_AGENT_LOG_CONFIG_FILE" 

 

- Make the above changes, backing up any files as necessary

- Restart the SPS