---
title: Enable HTTP Connection State
description: This option only applies when these properties are true:
component: java-agents
version: 2025.11
page_id: java-agents:properties-reference:org.forgerock.agents.http.client.connection.state.enabled
canonical_url: https://docs.pingidentity.com/java-agents/2025.11/properties-reference/org.forgerock.agents.http.client.connection.state.enabled.html
---

# Enable HTTP Connection State

This option only applies when these properties are `true`:

* [Enable Connection Pooling](org.forgerock.agents.use.connection.pooling.enabled.html)

* [Enable HTTP Connection Reuse](org.forgerock.agents.http.client.reuse.connections.enabled.html)

Set this property to `true` to change the Apache HTTP Client default behavior, and allow connection reuse.

Because the client certificate is defined at the client level, all requests to the same target share the same client certificate, so enabling this property should not be an issue.

|                          |                                                                                              |
| ------------------------ | -------------------------------------------------------------------------------------------- |
| Property name            | `org.forgerock.agents.http.client.connection.state.enabled`                                  |
| Aliases                  | `org.forgerock.agents.http.client.connection.state.enabled`   Introduced in Java Agent 5.8.0 |
| Function                 | Connection pooling                                                                           |
| Type                     | Boolean: `true` returns true; all other strings return `false`.                              |
| Default                  | `true`                                                                                       |
| Bootstrap property       | Yes                                                                                          |
| Required property        | No                                                                                           |
| Restart required         | Yes - Restart the container after changing the property                                      |
| Local configuration file | `AgentBootstrap.properties`                                                                  |
