See httpbind.conf File Location for information on finding this file.
Set httpbind.inactivity parameter to the time in seconds after which you want the gateway to terminate idle connections.
The default is 180 seconds. For example:
If clients do not poll the gateway before this time elapses, the gateway terminates the connection.
Save and close httpbind.conf.
Restart the gateway using the tools provided by the web or application server.