Skip to content

Configuring HTTP Connector

Endi S. Dewata edited this page Feb 18, 2023 · 1 revision

Overview

The HTTP connector configuration is located in the Connector element in /etc/pki/pki-tomcat/server.xml:

<Server>
    <Service>

        <Connector name="Unsecure"
            ...
            connectionTimeout="20000"
            ...
            />

        <Connector name="Secure"
            ...
            connectionTimeout="80000"
            keepAliveTimeout="300000"
            ...
            />

    </Service>
</Server>

Configuring Connection Timeout

The connectionTimeout parameter specifies the number of milliseconds this connector will wait, after accepting a connection, for the request URI line to be presented. Use a value of -1 to indicate no (i.e. infinite) timeout. The default value is 60000 (i.e. 60 seconds) but note that the standard server.xml that ships with Tomcat sets this to 20000 (i.e. 20 seconds). Unless disableUploadTimeout is set to false, this timeout will also be used when reading the request body (if any).

In PKI the parameter is set to 20000 (20 seconds) for the Unsecure connector and 80000 (80 seconds) for the Secure connector.

Configuring Keep Alive Timeout

The keepAliveTimeout parameter specifies the number of milliseconds this connector will wait for another HTTP request before closing the connection. The default value is to use the value that has been set for the connectionTimeout attribute. Use a value of -1 to indicate no (i.e. infinite) timeout.

In PKI 10.3 or older the parameter is unset. In PKI 10.4 or newer the parameter is set to 300000 (5 minutes) for the secure connector.

Configuring Session Timeout

The sessionTimeout parameter specifies the time, in seconds, after the creation of an SSL session that it will timeout. Use 0 to specify an unlimited timeout. If not specified, a default of 86400 (24 hours) is used.

In PKI the parameter is unset.

See Also