conduktor.io ↗

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

AuthorCheng Tan
StatusAccepted
Kafka Version2.7
JIRAKAFKA-9893
WikiView on Apache Wiki
Created2020-04-22
Last Modified2020-06-12
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.