Configuring Idle Timeout for HTTP Connections in Ambience 4

Overview

This entry explains how to configure the idle timeout value for HTTP connections in Ambience 4. The configuration is managed in the jetty-http.xml file located under the /jetty/etc/ folder of your Ambience 4 installation directory. Updating this value ensures that connections are closed after the defined idle period.


Step 1: Locate the Configuration File

Navigate to the following directory in your Ambience 4 installation:

/jetty/etc/

Locate the relevant configuration file:

jetty-http.xml

Step 2: Identify the Idle Timeout Property

Within the file, locate the following configuration block:

<Set name="idleTimeout">
    <Property name="jetty.http.idleTimeout" deprecated="http.timeout" default="30000"/>
</Set>

Step 3: Update the Idle Timeout Value

Modify the default value 30000) to your desired timeout in milliseconds. For example, to set the timeout to 60 seconds:

<Set name="idleTimeout">
    <Property name="jetty.http.idleTimeout" deprecated="http.timeout" default="60000"/>
</Set>

Step 4: Save and Restart

  1. Save the changes to jetty-http.xml.
  2. Restart the Ambience service to apply the updatedconfiguration.