- 
    Type:Bug 
- 
    Resolution: Won't Do
- 
    Priority:Major - P3 
- 
    None
- 
    Affects Version/s: 6.0.0, 6.1.1, 6.2.1, 6.3.2
- 
    Component/s: None
- 
    None
- 
        Networking & Observability
- 
        ALL
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
In socket_util.h, if the value of TCP_KEEPINTVL exceeds maxKeepIntvlSecs, it should be capped at maxKeepIntvlSecs. The same logic applies to TCP_KEEPIDLE.
However, in reality, optVal is always set to 1, and rawOptVal is never assigned to optVal, which results in the socket option not being updated as expected.

A correct implementation might be:

And I've already verified the fix using the strace tool.
Before the fix:

After the fix:

If my analysis is correct, I'd be happy to fix the issue!!
- is related to
- 
                    SERVER-69063 Fix TCP keepalive option setting -         
- Closed
 
-         
- links to



