v.23.5New Feature

Add Handshake Timeout for Hello Packet from Replica

Add separate handshake_timeout for receiving Hello packet from replica. Closes #48854. #49948 (Kruglov Pavel).
Added a separate handshake_timeout setting specifically for receiving the Hello packet from replica servers during handshake.

Why it matters

This feature addresses the issue where the handshake timeout applied to the entire replica connection was not granular enough, potentially causing delays or failures when establishing connections with replicas. By introducing a dedicated timeout for receiving the Hello packet, it improves connection reliability and fine-tunes replica synchronization.

How to use it

Users can configure the new handshake_timeout parameter in the server settings or client configurations to specify the maximum allowed time for receiving the Hello packet from a replica during handshake. Adjust this timeout based on network conditions or replica response characteristics to optimize connection handling.