# Customize TCP timeout values

For server-agent communication, Datalore uses a TCP connection configured with the following keepalive parameters:

* `tcp_keepalive_time`: 1 minute

* `tcp_keepalive_intvl`: 10 seconds

* `tcp_keepalive_probes`: 6

If your internal network configuration requires it, you can override the default values.

Procedure: Override TCP keepalive values

Docker deployment:

To specify custom keepalive values, add the following parameters under `environment` in `docker-compose.yaml`:

```YAML
environment:
  TCP_KEEP_IDLE: {tcp_keepalive_time}
  TCP_KEEP_INTERVAL: {tcp_keepalive_intvl}
  TCP_KEEP_COUNT: {tcp_keepalive_probes}
```

Kubernetes deployment:

To specify custom keepalive values, add the following parameters under `dataloreEnv` in `datalore.values.yaml`:

```YAML
dataloreEnv:
  TCP_KEEP_IDLE: {tcp_keepalive_time}
  TCP_KEEP_INTERVAL: {tcp_keepalive_intvl}
  TCP_KEEP_COUNT: {tcp_keepalive_probes}
```

> **Tip:**
> For more information about keepalive variables, see the [TCP keepalive howto](https://tldp.org/HOWTO/TCP-Keepalive-HOWTO/usingkeepalive.html).

