> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# connect_timeout_* session settings

> ClickHouse session settings in the connect_timeout_* generated group.

These settings are available in [system.settings](https://clickhouse.com/docs/reference/system-tables/settings.md) and are autogenerated from [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

## connect\_timeout

Type

Seconds

Default

10

Connection timeout if there are no replicas.

## connect\_timeout\_with\_failover\_ms

Type

Milliseconds

Default

1000

The timeout in milliseconds for connecting to a remote server for a Distributed table engine, if the 'shard' and 'replica' sections are used in the cluster definition.
If unsuccessful, several attempts are made to connect to various replicas.

## connect\_timeout\_with\_failover\_secure\_ms

Type

Milliseconds

Default

1000

Connection timeout for selecting first healthy replica (for secure connections).
