Broadcom API Gateway 10 - Gateway reset the connection exactly after 100 HTTP requests that were sent from same client App, although Keep Alive is enabled.
search cancel

Broadcom API Gateway 10 - Gateway reset the connection exactly after 100 HTTP requests that were sent from same client App, although Keep Alive is enabled.

book

Article ID: 236327

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Customer testing an high number of itineration (+5000 HTTPS requests) over a keep-alive connection between performance test client and the Gateway. However, every 100 requests, the Gateway close the connection and a new one is established. Customer expectation is that keep-alive is honoured until no more requests have been transmitted and keep-live timeout is reached. 

Environment

Release : 10.0

Component :

Cause

The limitation is enforced by the underlying Tomcat subsystem. In fact, by default, the maximum number of HTTP requests which can be pipelined until the connection is closed is 100. 

Resolution

In the Gateway Appliance, Tomcat default behaviour can be tuned in Policy Manager > "Manage Listen Ports" > "PORT" > "Advanced properties" . 

The properties which is used to control the number of HTTP requests which can be pipelined is maxKeepAliveRequests (case sensitive).  The property need to be added in order to change the default behaviour.

Here an example with max connection number set to 10000.

Note: Setting this to -1 will allow an unlimited amount of pipelined keep-alive HTTP requests.