KIP-601 — Configurable socket connection timeout in NetworkClient
Accepted Kafka 2.7 Client
Adds a `socket.connection.setup.timeout.ms` and `socket.connection.setup.timeout.max.ms` client configuration to directly control the TCP handshake timeout instead of relying on the OS `tcp_syn_retries` kernel parameter. The OS default for `tcp_syn_retries` is typically 6, yielding a 127-second timeout before a dead-node connection attempt fails, far too long for Kafka client reconnection logic.
Details
| Author | Cheng Tan |
| Status | Accepted |
| Kafka Version | 2.7 |
| JIRA | KAFKA-9893 |
| Wiki | View on Apache Wiki |
| Created | 2020-04-22 |
| Last Modified | 2020-06-12 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.