• Gann's avatar
    Improve error handling in connSocketBlockingConnect for various connction failures (#13008) · 0777dc78
    Gann authored
    This commit addresses a problem in connSocketBlockingConnect where
    different types of connection failures, including timeouts and other
    errors, were not consistently handled. Previously, the function did not
    return C_ERR immediately after detecting a connection failure, which
    could lead to inconsistent states and misinterpretation of the
    connection status.
    
    With this update, connSocketBlockingConnect now correctly returns C_ERR
    upon encountering any connection error, ensuring that all types of
    connection failures are handled consistently and the behavior of the
    function aligns with expected outcomes in case of connection issues.
    
    Closes #12900
    0777dc78
socket.c 15.7 KB