socket.connection.setup.timeout.ms — Kafka Broker Configuration
The amount of time the client will wait for the socket connection to be established. If the connection is not built before the timeout elapses, clients will close the socket channel
Description
The amount of time the client will wait for the socket connection to be established. If the connection is not built before the timeout elapses, clients will close the socket channel. This value is the initial backoff value and will increase exponentially for each consecutive connection failure, up to the socket.connection.setup.timeout.max.ms value.
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Broker | 2.7 | 10000 (10 seconds) |
| Broker | 2.8 | 10000 (10 seconds) |
| Broker | 3.0 | 10000 (10 seconds) |
| Broker | 3.1 | 10000 (10 seconds) |
| Broker | 3.2 | 10000 (10 seconds) |
| Broker | 3.3 | 10000 (10 seconds) |
| Broker | 3.4 | 10000 (10 seconds) |
| Broker | 3.5 | 10000 (10 seconds) |
| Broker | 3.6 | 10000 (10 seconds) |
| Broker | 3.7 | 10000 (10 seconds) |
| Broker | 3.8 | 10000 (10 seconds) |
| Broker | 3.9 | 10000 (10 seconds) |
| Broker | 4.0 | 10000 (10 seconds) |
| Broker | 4.1 | 10000 (10 seconds) |
| Broker | 4.2 | 10000 (10 seconds) |
| Broker | 4.3 | 10000 (10 seconds) |
| Broker | 4.4 | 10000 (10 seconds) |
| Consumer | 2.7 | 10000 (10 seconds) |
| Consumer | 2.8 | 10000 (10 seconds) |
| Consumer | 3.0 | 10000 (10 seconds) |
| Consumer | 3.1 | 10000 (10 seconds) |
| Consumer | 3.2 | 10000 (10 seconds) |
| Consumer | 3.3 | 10000 (10 seconds) |
| Consumer | 3.4 | 10000 (10 seconds) |
| Consumer | 3.5 | 10000 (10 seconds) |
| Consumer | 3.6 | 10000 (10 seconds) |
| Consumer | 3.7 | 10000 (10 seconds) |
| Consumer | 3.8 | 10000 (10 seconds) |
| Consumer | 3.9 | 10000 (10 seconds) |
| Consumer | 4.0 | 10000 (10 seconds) |
| Consumer | 4.1 | 10000 (10 seconds) |
| Consumer | 4.2 | 10000 (10 seconds) |
| Consumer | 4.3 | 10000 (10 seconds) |
| Consumer | 4.4 | 10000 (10 seconds) |
| Producer | 2.7 | 10000 (10 seconds) |
| Producer | 2.8 | 10000 (10 seconds) |
| Producer | 3.0 | 10000 (10 seconds) |
| Producer | 3.1 | 10000 (10 seconds) |
| Producer | 3.2 | 10000 (10 seconds) |
| Producer | 3.3 | 10000 (10 seconds) |
| Producer | 3.4 | 10000 (10 seconds) |
| Producer | 3.5 | 10000 (10 seconds) |
| Producer | 3.6 | 10000 (10 seconds) |
| Producer | 3.7 | 10000 (10 seconds) |
| Producer | 3.8 | 10000 (10 seconds) |
| Producer | 3.9 | 10000 (10 seconds) |
| Producer | 4.0 | 10000 (10 seconds) |
| Producer | 4.1 | 10000 (10 seconds) |
| Producer | 4.2 | 10000 (10 seconds) |
| Producer | 4.3 | 10000 (10 seconds) |
| Producer | 4.4 | 10000 (10 seconds) |
| Connect Worker | 2.7 | 10000 (10 seconds) |
| Connect Worker | 2.8 | 10000 (10 seconds) |
| Connect Worker | 3.0 | 10000 (10 seconds) |
| Connect Worker | 3.1 | 10000 (10 seconds) |
| Connect Worker | 3.2 | 10000 (10 seconds) |
| Connect Worker | 3.3 | 10000 (10 seconds) |
| Connect Worker | 3.4 | 10000 (10 seconds) |
| Connect Worker | 3.5 | 10000 (10 seconds) |
| Connect Worker | 3.6 | 10000 (10 seconds) |
| Connect Worker | 3.7 | 10000 (10 seconds) |
| Connect Worker | 3.8 | 10000 (10 seconds) |
| Connect Worker | 3.9 | 10000 (10 seconds) |
| Connect Worker | 4.0 | 10000 (10 seconds) |
| Connect Worker | 4.1 | 10000 (10 seconds) |
| Connect Worker | 4.2 | 10000 (10 seconds) |
| Connect Worker | 4.3 | 10000 (10 seconds) |
| Connect Worker | 4.4 | 10000 (10 seconds) |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| producer / latency | 3000 | Sets the initial connection establishment timeout; repeated failures can increase it up to the configured maximum. Tradeoff: A shorter value can reject legitimate slow connections. It does not directly bound every send() call or guarantee immediate rebootstrap. Reference · 2026-10-27 |
Related Configs
socket.connection.setup.timeout.max.ms · reconnect.backoff.ms