Connection timeout.
also: connect timeout · connection timeouts · read timeout · read timeoutsConnect timeout limits establishing the TCP connection; read timeout limits waiting for response data. Both need explicit values.
the two-minute refresher
- Connect timeout: how long to wait for the TCP handshake; keep it short (1-5 s).
- Read timeout: how long to wait for data once connected; it depends on what the service does.
- Forgetting the connect timeout lets an unreachable host hang threads for minutes.