The API Gateway uses an HTTP client to send HTTP requests to HTTP-enabled servers. This client is configured with several default values that may limit the number of outbound HTTP connections to a specific host or to to all outbound destinations. The API Gateway will be unable to route requests via HTTP(S) if these limits are being met.
The following message may appear in the audit records or Gateway logs: Problem routing to http://server.domain.com/service. Error msg: Unable to obtain HTTP response from http://server.domain.com/service: Read timed out. Timed out at 60000ms. This error message can indicate that the API Gateway did not receive any HTTP-related packets over an existing TCP connection during a specific specified duration.
This occurs most commonly for one of two reasons:
- The protected service being routed to is busy. For example: A TCP connection can be opened by the server application has queued the request
- The outbound HTTP client connection limits have been exceeded. For example: The API Gateway has too many concurrent HTTP requests going to one specific host
It is possible to resolve this issue by configuring the API Gateway to allow more outbound HTTP requests to a specific host. This can be done as follows:
- Log in to the API Gateway as the ssgconfig user
- Select Option #3: Use a privileged shell (root)
- Open the /opt/SecureSpan/Gateway/node/default/etc/conf/system.properties file in a text editor
- Append the following system properties
- Save the file and exit the editor
- Restart the Gateway appliance
- Repeat steps #1 through #6 on each node in the cluster